chsh
git@iZ23e17xttvZ:~$ chsh
Password:
Changing the login shell for git
Enter the new value, or press ENTER for the default
Login Shell [/bin/bash]:
或者直接输入
chsh -s /bin/bash git
来修改shell为bash,最后一个参数为用户名,缺省时为当前用户。
-s, –shell SHELL new login shell for the user account
chsh其实是修改了 /etc/passwd 文件,
git用户对应的参数如下,最后一栏就是shell
git:x:1006:1006::/home/git:/bin/bash