bash 与 dash
Ubuntu 的 bash和dash的區(qū)別
| ? | ? | ? |
什么是bash ?
Bash(GNU Bourne-Again Shell)是許多Linux平臺的內(nèi)定Shell,事實上,還有許多傳統(tǒng)UNIX上用的Shell,像tcsh、csh、ash、bsh、ksh等 等,Shell Script大致都類同,當您學(xué)會一種Shell以后,其它的Shell會很快就上手,大多數(shù)的時候,一個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 看看
我們會發(fā)現(xiàn)Ubuntu默認采用的是 dash
如果要修改默認的sh,可以采用命令
sudo dpkg-reconfigure dash
然后選擇【否】
成功后再執(zhí)行l(wèi)s -l /bin/sh 看看
轉(zhuǎn)載于:https://www.cnblogs.com/li1129499045/p/5493433.html
總結(jié)
以上是生活随笔為你收集整理的bash 与 dash的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 户外徒步应急救援可以用什么装备
- 下一篇: 2013VS快捷键