1.0、参考
1.1、dash简介
short for | : | Debian GNU/Linux ash |
是什么 ? | : | a POSIX-compliant implementation of /bin/sh that aims to be as small as possible. |
开发语言 | : | C |
官方主页 | : | http://gondor.apana.org.au/~herbert/dash |
源码仓库 | : | https://git.kernel.org/pub/scm/utils/dash/dash.git |
1.2、通过包管理器安装dash
操作系统 | 包管理器 | 安装命令 |
---|
macOS | HomeBrew | brew install dash |
GNU/Linux | HomeBrew | brew install dash |
| apt | sudo apt-get install -y dash |
CentOS | yum | sudo yum install -y dash |
| dnf | sudo dnf install -y dash |
openSUSE | zypper | sudo zypper install -y dash |
Alpine Linux | apk | sudo apk add dash |
Arch Linux ArcoLinux Manjaro Linux | pacman | sudo pacman -Syyu --noconfirm sudo pacman -S --noconfirm dash |
Gentoo Linux | Portage | sudo emerge app-shells/dash |
1.3、通过编译源码安装dash
1.4、配置dash
级别 | 配置文件路径 |
---|
系统级 | /etc/profile |
用户级 | ~/.profile |
1.5、切换默认Shell
使用chsh命令将默认的Shell
切换到dash
:
chsh -s $(command -v dash)