首页 > 其他 > 详细

bash 与 dash

时间:2016-05-14 22:58:13      阅读:234      评论:0      收藏:0      [点我收藏+]

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 看看

技术分享

技术分享

bash 与 dash

原文:http://www.cnblogs.com/li1129499045/p/5493433.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!