Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / Linux中Shell的执行流程

Shell执行流程1.Printthe info of reminding 打印提示信息2.Waitinguser for input(wait) 等待用户输入3.Acceptthe command 接受命令4.Interpretthe command 解释命令5.Findit,execute it, if have the parameter, the command interprete it 找到该命令,执行命令,如果命令含有参数,输入的命令解释它6.Executefinished, back to the first step 执行完成,返回第一步图示示例[root@localhost share]# cd ~
[root@localhost ~]# mkdir test
[root@localhost ~]# cd test/
[root@localhost test]# touch file1
[root@localhost test]# ls
file1
[root@localhost test]# ls -l
total 0
-rw-r--r--. 1 root root 0 Jul 21 10:57 file1
[root@localhost test]# ll
total 0
-rw-r--r--. 1 root root 0 Jul 21 10:57 file1相关阅读:Linux下Shell编程——awk编程 http://www.linuxidc.com/Linux/2013-06/85527.htmLinux下Shell编程——sed命令基本用法 http://www.linuxidc.com/Linux/2013-06/85526.htmLinux下Shell编程——grep命令的基本运用 http://www.linuxidc.com/Linux/2013-06/85525.htmLinux下Shell编程——正则表达式基础与扩展 http://www.linuxidc.com/Linux/2013-06/85523.htm