Ubuntu系统下bash和dash的区别(修改默认sh为bash)
来源:互联网 发布:mac上的翻墙工具 编辑:程序博客网 时间:2024/05/22 06:21
什么是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 看看
结果是: /bin/sh -> dash
我们会发现Ubuntu默认采用的是 dash
如果要修改默认的sh,可以采用命令
sudo dpkg-reconfigure dash
然后选择【否】
成功后再执行ls -l /bin/sh 看看
结果是: /bin/sh -> bash
修改成功!
什么是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 看看
结果是: /bin/sh -> dash
我们会发现Ubuntu默认采用的是 dash
如果要修改默认的sh,可以采用命令
sudo dpkg-reconfigure dash
然后选择【否】
成功后再执行ls -l /bin/sh 看看
结果是: /bin/sh -> bash
修改成功!
- Ubuntu系统下bash和dash的区别(修改默认sh为bash)
- 嵌入式linux:Ubuntu系统下bash和dash的区别(修改默认sh为bash)
- bash、dash(/bin/bash和/bin/sh)的区别
- Ubuntu切换默认sh为bash或者dash
- Ubuntu切换默认sh为bash或者dash
- Ubuntu 的 bash和dash的区别
- 嵌入式 软链接Ubuntu下的/bin/sh改dash为bash
- 修改Ubuntu dash shell为bash shell
- 修改 ubuntu dash shell为bash shell
- bash和dash的区别
- bash和dash的区别
- bash、dash(/bin/bash和/bin/sh)
- Ubuntu /bin/sh /bin/bash /bin/dash 区别
- ubuntu默认dash改为bash
- linux下的sh和bash区别
- Ubuntu dash与bash的区别
- Ubuntu dash与bash的区别
- ubuntu下shell脚本运行异常:bash和dash的区别
- 从一个xib文件中加载另一个xib文件
- 纯代码编写UITableView和UICollectionView中的坑
- 2、BI开发环境
- IOS中获取各个文件的目录路径的方法和NSFileManager类
- UIViewController
- Ubuntu系统下bash和dash的区别(修改默认sh为bash)
- JS技巧总结
- matlab 计算大型距离方阵,distance matrix
- 文章标题 关于MySQL卸载几点注意事项
- 如何对待Release与Debug运行结果不一致
- lwip协议栈里面回调函数的使用
- IOS根据路径读取文件大小
- 3.1、BI之SSIS之基础包的创建
- 3.2、BI之SSIS之简单ETL包开发