在 Ubuntu 中,默认/bin/sh
指向./bin/dash
我想/bin/bash
用作我的系统范围的 shell 用于/bin/sh
. 做这个的最好方式是什么?
mka*_*erg 14
如这个 Ubuntu wiki 页面所示,您应该运行
sudo dpkg-reconfigure dash
Run Code Online (Sandbox Code Playgroud)
并选择选项不使用/bin/dash
作为默认的shell。以这种方式进行更改不仅会修复 symlink /bin/sh
,还会将系统的其他部分配置为正确运行,例如确保man sh
指向 bash 联机帮助页而不是破折号。