歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 的 bash和dash的區別

Ubuntu 的 bash和dash的區別

日期:2017/2/28 15:53:56   编辑:Linux教程

什麼是bash ?

Bash(GNU Bourne-Again Shell)是許多Linux平台的內定Shell,事實上,還有許多傳統UNIX上用的Shell,像tcsh、csh、ash、bsh、ksh等等,Shell Script大致都類同,當您學會一種Shell以後,其它的Shell會很快就上手,大多數的時候,一個Shell Script通常可以在很多種Shell上使用

什麼是dash ?

dash is the standard command interpreter for the system. The current

version of dash is in the process of being changed to conform with the

POSIX 1003.2 and 1003.2a specifications for the shell.

先用命令ls -l /bin/sh 看看

我們會發現Ubuntu默認采用的是 dash

如果要修改默認的sh,可以采用命令

sudo dpkg-reconfigure dash

然後選擇【否】

成功後再執行ls -l /bin/sh 看看

Copyright © Linux教程網 All Rights Reserved