当前位置:网站首页>Shell operation principle
Shell operation principle
2022-07-28 05:42:00 【zhengyawen666】
One The architecture of the computer
understand shell Before operating the principle , Let's first understand the computer architecture
Bottom up : Hardware -> Hardware drivers ( After the hardware is connected Relevant driver required Can be used )-> operating system ( In essence, it is to better manage software and hardware Provide users with a good experience environment )-> Software ( Graphical interface or instruction operation )
In everyday life , We are linux Next or windows Next , Access the operating system through instructions or graphical interfaces , No direct access to operating system . But through the shell program .
Two Shell
shell Is one of the shell programs
Basic concepts : A related concept based on operating system
in real life , There are many very professional things , We can't operate , Shell program is needed .
For example, go to the bank to deposit money , We only need simple operation , But bank staff need to do more background operations .
For example, drivers can only drive , But you don't need to understand the principle of cars and car repair
-> No one is required to participate in the relevant details
in other words , In everyday life , We go through shell Operating system , In essence, it is not a direct operation of the operating system . Instead, it interacts with the operating system through the shell program .
1 Why is there a shell
The most fundamental reason is that people cannot directly access the operating system .
Why can't people directly access the operating system ?
If you want to operate the operating system directly , What is the monitor , Where in the operating system , If you want to write data ,…… And other operation details , Care about these details is called direct access to the operating system . Very professional .
If you directly access the operating system , One side , High threshold for users , High operating cost , On the other hand , If the user makes a mistake , It will bring unsafe factors .
So we need to use outsourcing procedures
summary :
1 ‘ people ‘ Not good at using the operating system
2 If you let people directly access the operating system , It can lead to problems
2 How do we access the operating system in our daily life
So how do we access the operating system ? What is the graphical interface and instruction operation ?
Graphical interface and instruction operation are shell programs provided by the operating system . Mainly for command line parsing . It's a command line interpreter . Translate the user's commands to the core processing , At the same time, the results of the core processing will be returned to the user .
The meaning of shell program :
1 Intermediate software layer for user and operating system interaction
2 It can protect the operating system to a certain extent : The operating system can reject the user's request , The shell will also deny users
How to query shell programs through commands ?

The shell program is carried out through subroutines .
Bash It's a dead circle front [] The hint is bash Tips for cycling Prompt the user to keep typing
Bash shell What is the difference between different shell programs ?
Shell bash All have certain functions shell Is a general term for all shell programs .
边栏推荐
猜你喜欢

restFul接口使用个人总结

顺序表oj之合并两个有序数组

VMware Workstation is incompatible with device/credential guard. Disable device/credential guard

论文写作用词

How to compare long and integer and why to report errors

链表中关于快慢指针的oj题

RESNET structure comparison

repackag failed: Unable to find main class

Digital twin technology creates visual application of smart mine

冶金物理化学复习 --- 液 - 液相反应动力学
随机推荐
repackag failed: Unable to find main class
sql 查询list时两次的数据不一致,自动加上了limit
环形链表问题
顺序表oj题目
集合框架的操作使用
pytorch 计算模型的GFlops和total params的方法
Use of IO streams
visio如何快速生成相同的图案,生成图像矩阵
BigDecimal rounds and retains two decimal places
Export excel, generate multiple sheet pages, and name them
Mabtis (I) basic use of framework
分支与循环语句
repackag failed: Unable to find main class
openjudge:字符串最大跨距
ssm项目快速搭建项目配置文件
Merge two ordered arrays of order table OJ
GET与POST区别
The way of deep learning thermodynamic diagram visualization
论文模型主图范例
动态卷积的本质