【转】终于搞懂了shell bash cmd...

问题一:DOS与windows中cmd区别linux

在windows系统中,“开始-运行-cmd”能够打开“cmd.exe”,进行命令行操做。 操做系统能够分红核心(kernel)和Shell(外壳)两部分,其中,Shell是操做系统与外部的主要接口,位于操做系统的外层,为用户提供与操做系统核心沟通的途径。在windows系统中见到的桌面即explorer.exe(资源管理器)是图形shell,而cmd就是命令行shell。这算是cmd与dos的最大区别,一个只是接口、一个是操做系统。只是cmd中的某些命令和dos中的命令类似,所以不少人把两者混为一谈。cmd属于windows系统的一部分,dos自己就是一个系统,在dos系统下能够删除,修复windows系统,而在cmd下则不行。shell

问题二:Linux下的shell是什么?编程

Shell俗称壳(用来区别于核 kernel),是一种“命令解析器”。按照ABS的定义,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)。windows

问题三:windows下能用bash shell吗?bash

bash是Linux和Unix下的shell,若是真的想试用,能够在MS windows下安装Cygwin环境,而后再在其下使用。 这时须要注意,Cygwin环境下跟真实的Linux或Unix是有区别的,一些命令会运行不正常。最直接的体验,仍是使用Linux来得贴心,几乎能够作任何事情。若是想在MS Windows下使用Shell,建议仍是使用微软的PowerShell,它能提供给你操做MS windows的彻底功能。app

问题四:脚本语言和普通的编程语言有什么区别?编程语言

编程语言 “编写-编译-连接-运行”,脚本语言是“解释-执行”而非编译,脚本语言的程序代码即便最终的可执行文件,经过对应的解释器解释执行便可,因此更方便快捷。每种脚本语言都须要其对应的解释器。如Perl、Python、Ruby、JavaScript等都是脚本语言,shell也属于一种比较特殊的脚本语言。ide

问题五:linux shell即bash和windows cmd区别?工具

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。操作系统

blog.csdn.net/zhrrr111/ar…

相关文章
相关标签/搜索