問題一: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。操作系統