DOS的命令、Linux的shell和window下的cmd杂谈
来源:互联网 发布:php个人博客导航源码 编辑:程序博客网 时间:2024/04/27 11:03
1.定义
DOS、Window、Linux都是操作系统;操作系统分为核心(Kernel)和外壳(shell)。
操作系统可以分成核心(kernel)和Shell(外壳)两部分。Window系统中的桌面即explorer.exe(资源管理器)是图形shell,而cmd就是命令行shell;Linux的shell,按照ABS(《Advance Bash-Scripting guide 》)的解释:shell是The shell is a command interpreter. More than just the insulating layer between the operating system kernel and the user, it's also a fairly powerful programming language。分为图形界面shell和命令行shell两大类。Shell管理你与操作系统之间的交互:等待你输入,向操作系统解释你的输入,并且处理各种各样的操作系统的输出结果。不同系统有不同的shell,如bash、C shell、windows power shell 等等;在linux系统中,通常是Bourne Again shell ( 即bash)。
2.CMD和Bash(Linux下的shell)区别
shell是一个命令解释器(也是一种应用程序),处于内核和用户之间,负责把用户的指令传递给内核并且把执行结果回显给用户,同时,shell也可以作为一门强大的编程语言。在linux/unix平台上,shell多半默认为Bash shell。
cmd是Command shell的简写,微软的定义是:The command shell is a separate software program that provides direct communication between the user and the operating system. The non-graphical command shell user interface provides the environment in which you run character-based applications and utilities. The command shell executes programs and displays their output on the screen by using individual characters similar to the MS-DOS command interpreter Command.com.(CommandShell是一个独立的应用程序,它为用户提供对操作系统直接通信的功能,它为基于字符的应用程序和工具提供了非图形界面的运行环境,它执行命令并在屏幕上回显MS-DOS风格的字符。)所以,可以近似地认为linux shell=bash而windows=cmd,都是命令行解释器,都是用户与操作系统的交互接口。但是bash要比cmd强大很多,windows也有强大的shell叫windows power shell。
cmd是Command shell的简写,微软的定义是:The command shell is a separate software program that provides direct communication between the user and the operating system. The non-graphical command shell user interface provides the environment in which you run character-based applications and utilities. The command shell executes programs and displays their output on the screen by using individual characters similar to the MS-DOS command interpreter Command.com.(CommandShell是一个独立的应用程序,它为用户提供对操作系统直接通信的功能,它为基于字符的应用程序和工具提供了非图形界面的运行环境,它执行命令并在屏幕上回显MS-DOS风格的字符。)所以,可以近似地认为linux shell=bash而windows=cmd,都是命令行解释器,都是用户与操作系统的交互接口。但是bash要比cmd强大很多,windows也有强大的shell叫windows power shell。
3.DOS与windows中cmd区别
在windows系统中,“开始-运行-cmd”可以打开“cmd.exe”,进行命令行操作。
cmd与dos的最大区别,一个只是接口、一个是操作系统。只是cmd中的某些命令和dos中的命令相似,因此很多人把二者混为一谈。cmd属于windows系统的一部分,dos本身就是一个系统,在dos系统下可以删除,修复windows系统,而在cmd下则不行。
4.脚本语言和普通的编程语言有什么区别?
编程语言 “编写-编译-链接-运行”,脚本语言是“解释-执行”而非编译,脚本语言的程序代码即使最终的可执行文件,通过对应的解释器解释执行即可,所以更方便快捷。每种脚本语言都需要其对应的解释器。如Perl、Python、Ruby、JavaScript等都是脚本语言,shell也属于一种比较特殊的脚本语言。
0 0
- DOS的命令、Linux的shell和window下的cmd杂谈
- Dos下的cmd命令
- shell、cmd、dos和脚本语言杂谈
- window下cmd文件和文件夹的相关命令
- 关于windows下的dos和linux下的shell
- window 常用的cmd命令
- 常用的Window Dos命令
- DOS程序的命令随笔杂谈
- shell,console,terminal / DOS、CMD的区别
- java 在window 下调用dos 命令的问题。
- 增加两个DOS下面的CMD命令
- dos下的命令
- dos与cmd的关系及cmd命令
- CMD/DOS下符号的作用参考
- CMD/DOS下符号的作用参考
- 用Shell来运行dos下的ping命令
- Linux和DOS的FORMAT命令区别
- 个人常用的linux和dos命令
- 编写自己的JDBC框架
- 111
- JMS简介与ActiveMQ实战
- [原]linux shell 逻辑判断
- 微信公众帐号自定义菜单创建的python脚本
- DOS的命令、Linux的shell和window下的cmd杂谈
- sbt创建spark程序(windows下)
- css3 新属性
- ListView加载不同布局
- 集合遍历方法
- OPTICS算法
- 自己的服务器通过微信公众号Token验证测试的代码(Python版)
- 获取中国当前(上海时区)时间字符串
- Android系统移植与调试之------->如何添加一个adb wifi无线调试的功能【开发者选项】-【Wifi调试】