加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

shell 是什么

发布时间:2020-12-15 18:19:39 所属栏目:安全 来源:网络整理
导读:shell是Linux命令解释器 [[email?protected] japan]# whereis lsls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.gz[[email?protected] japan]# whereis cdcd: /usr/share/man/man1/cd.1.gz /usr/share/man/man1p/cd.1p.gz help 内部命
shell是Linux命令解释器
[[email?protected] japan]# whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.gz
[[email?protected] japan]# whereis cd
cd: /usr/share/man/man1/cd.1.gz /usr/share/man/man1p/cd.1p.gz
help 内部命令
man 外部安装目录
区分是否是内部的,使用whereis命令,有具体文件路径的是外部安装的。
?

用户写命令->shell根据ASCII翻译为机器码(0101)->传递给内核,内核调用硬件进行处理->(处理结果给shell显示,如ls这种)
shell程序格式:
1 #!/bin/bash    //非常重要的一句,不能写错一个字符
2 #The first program    //注释
3 //以下是 shell 程序区
4 
5 echo -e "e[1;34m dushenda e[0m"

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读