设为首页 加入收藏

TOP

Linux中Shell的执行流程
2014-11-24 03:11:38 来源: 作者: 【 】 浏览:1
Tags: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 执行完成,返回第一步


图示


Linux中Shell的执行流程


示例


[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


相关阅读


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C++中几个预定义变量的介绍 下一篇Linux中的硬链接和软链接

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·C++ 语言社区-CSDN社 (2025-12-24 17:48:24)
·CSDN问答专区社区-CS (2025-12-24 17:48:22)
·C++中`a = b = c`与` (2025-12-24 17:48:19)
·C语言结构体怎么直接 (2025-12-24 17:19:44)
·为什么指针作为c语言 (2025-12-24 17:19:41)