📌  相关文章
📜  将默认 shell 设置为 bash - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:44.136000             🧑  作者: Mango

代码示例1
#to change your default shell on any GNU/Linux distro 
#you need to use chsh

#For example if you want to change your default shell to bash
#you need to do this:
#first you need the full path to the bash executable
chsh -l

#then using the path for bash you need to write:
chsh -s /your/path/to/bash
#chsh -s /bin/bash for example