Linux 终端用户名变成 sh-4.3$

    今天突然想改一下默认的shell,默认的shell是/bin/bash,我通过修改/etc/passwd文件修改了自己用户下面的shell,启动后终端用户名久变成了sh-4.3 ,这个只要在通过chsh切换过来就好了

   

    cjx@ubuntu:~$ chsh
Password: 
Changing the login shell for cjx
Enter the new value, or press ENTER for the default
Login Shell [/bin/bash]: /bin/bash
cjx@ubuntu:~$ ^C
cjx@ubuntu:~$ 

猜你喜欢

转载自blog.csdn.net/cheng401733277/article/details/79706598
今日推荐