怎样修改自己的登录shell

问题

我只是Linux系统的普通用户,没有权限调用chsh命令修改自己的登录shell。

bash-4.1$ chsh --help
Usage: chsh [ -s shell ] [ --list-shells ] [ --help ] [ --version ]
       [ username ]
bash-4.1$

解决方法

编辑自己的~/.profile文件。

#Add this to go bash at login
bash
#end

参考
https://superuser.com/questions/282647/linux-neither-chsh-nor-ypchsh-is-working-can-i-change-my-shell

猜你喜欢

转载自www.cnblogs.com/chenjo/p/12719741.html