linux shell 和linux 命令的区别 linux命令和shell命令有什么区别啊?
shell\u547d\u4ee4\u548clinux\u547d\u4ee4\u7684\u533a\u522bshell\u7ffb\u8bd1\u6210\u58f3\u7684\u610f\u601d\uff0c\u5b83\u662f\u5305\u88f9\u5728Linux\u5185\u6838\u5916\u5c42\u7684\uff0c\u4e00\u4e2a\u53ef\u901a\u8fc7\u4e00\u7cfb\u5217\u7684Linux\u547d\u4ee4\u5bf9\u64cd\u4f5c\u7cfb\u7edf\u53d1\u51fa\u76f8\u5173\u6307\u4ee4\u7684\u4eba\u673a\u754c\u9762\u3002shell\u53ef\u4ee5\u901a\u8fc7\u5176\u6761\u4ef6\u8bed\u53e5\u548c\u5faa\u73af\u8bed\u53e5\u7b49\uff0c\u628a\u4e00\u7cfb\u5217Linux\u547d\u4ee4\u7ed3\u5408\u5728\u4e00\u8d77\uff0c\u5f62\u6210\u4e00\u4e2a\u76f8\u5f53\u4e8e\u9762\u5411\u8fc7\u7a0b\u7684\u7a0b\u5e8f\uff0c\u5373shell script\uff0c\u4ece\u800c\u5b9e\u73b0\u4e00\u4e9b\u590d\u6742\u7684\u529f\u80fd\u3002
shell\u53ef\u4ee5\u8bf4\u662fLinux\u547d\u4ee4\u96c6\u7684\u6982\u79f0\uff0c\u5c5e\u4e8e\u547d\u4ee4\u884c\u7684\u4eba\u673a\u754c\u9762\u3002shell\u662f\u4e00\u4e2a\u7528C\u8bed\u8a00\u7f16\u5199\u7684\u7a0b\u5e8f\uff0c\u5b83\u662f\u7528\u6237\u4f7f\u7528Linux\u7684\u6865\u6881\u3002shell\u65e2\u662f\u4e00\u4e2a\u547d\u4ee4\u8bed\u8a00\uff0c\u4e5f\u662f\u4e00\u4e2a\u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00;\u5176\u6b21\uff0cshell\u4e5f\u6307\u4e00\u79cd\u5e94\u7528\u7a0b\u5e8f\uff0c\u8fd9\u4e2a\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u4e00\u4e2a\u754c\u9762\uff0c\u7528\u6237\u901a\u8fc7\u8fd9\u4e2a\u754c\u9762\u8bbf\u95ee\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u7684\u670d\u52a1\u3002
\u7531\u6b64\u53ef\u89c1\uff0cshell\u76f8\u5f53\u4e8e\u7ecf\u8fc7\u88c5\u9970\u7684\u547d\u4ee4\u884c\uff0c\u5b83\u4e0e\u547d\u4ee4\u884c\u4e00\u6837\uff0c\u90fd\u80fd\u64cd\u4f5cLinux;\u4f46\u662fshell\u662f\u9762\u5411\u8fc7\u7a0b\u7684\uff0c\u76f8\u5f53\u4e8e\u6709\u4e86\u4e00\u5b9a\u7684\u903b\u8f91\u548c\u8fc7\u7a0b\uff0c\u800c\u547d\u4ee4\u884c\u53ea\u662f\u5355\u4e00\u7684\u64cd\u4f5c\u3002
shell\u7ffb\u8bd1\u6210\u58f3\u7684\u610f\u601d\uff0c\u5b83\u662f\u5305\u88f9\u5728linux\u5185\u6838\u5916\u5c42\u7684\uff0c\u4e00\u4e2a\u53ef\u901a\u8fc7\u4e00\u7cfb\u5217\u7684linux\u547d\u4ee4\u5bf9\u64cd\u4f5c\u7cfb\u7edf\u53d1\u51fa\u76f8\u5173\u6307\u4ee4\u7684\u4eba\u673a\u754c\u9762\u3002 shell\u53ef\u4ee5\u901a\u8fc7\u5176\u6761\u4ef6\u8bed\u53e5\u548c\u5faa\u73af\u8bed\u53e5\u7b49\uff0c\u628a\u4e00\u7cfb\u5217linux\u547d\u4ee4\u7ed3\u5408\u5728\u4e00\u8d77\uff0c\u5f62\u6210\u4e00\u4e2a\u76f8\u5f53\u4e8e\u9762\u5411\u8fc7\u7a0b\u7684\u7a0b\u5e8f\uff0cshell script\uff0c\u6765\u5b9e\u73b0\u4e00\u4e9b\u8f83\u4e3a\u590d\u6742\u7684\u529f\u80fd\u3002
\u603b\u62ec\uff0cshell\u662flinux\u547d\u4ee4\u96c6\u7684\u6982\u79f0\uff0c\u662f\u5c5e\u4e8e\u547d\u4ee4\u884c\u7684\u4eba\u673a\u754c\u9762\u3002
script,从而实现一些复杂的功能。
shell可以说是Linux命令集的概称,属于命令行的人机界面。shell是一个用C语言编写的程序,它是用户使用Linux的桥梁。shell既是一个命令语言,也是一个程序设计语言;其次,shell也指一种应用程序,这个应用程序提供了一个界面,用户通过这个界面访问操作系统内核的服务。
由此可见,shell相当于经过装饰的命令行,它与命令行一样,都能操作Linux;但是shell是面向过程的,相当于有了一定的逻辑和过程,而命令行只是单一的操作。
准确上讲应该说是shell脚本文件编程(当然了,在该shell脚本文件中也可以包含linux系统命令)。shell脚本文件是一个文本文件,它是将你需要完成的各种复杂功能通过编写shell程序来实现。例如:模式匹配(awk)、字符串替换功能(sed)
扩展阅读:linux cat执行shell ... shell 电脑 ... linux系统 ... linux shell 循环 ... linux shell 命令 ... linux 后台执行shell ... linux shell 菜鸟教程 ... linux shell编程实验报告 ... linux shell read ...