bash 与 dash
生活随笔
收集整理的這篇文章主要介紹了
bash 与 dash
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Ubuntu 的 bash和dash的區別
| ? | ? | ? |
什么是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 看看
轉載于:https://www.cnblogs.com/li1129499045/p/5493433.html
總結
以上是生活随笔為你收集整理的bash 与 dash的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 户外徒步应急救援可以用什么装备
- 下一篇: 2013VS快捷键