美文网首页工具
sh-3.2# - root权限后的shell prompt

sh-3.2# - root权限后的shell prompt

作者: 谢小帅 | 来源:发表于2017-05-02 11:16 被阅读20次
ShuaideMacBook-Pro:~ shuai$ su
Password:
sh-3.2# whoami
root
sh-3.2# exit // 退出root用户
exit
ShuaideMacBook-Pro:~ shuai$ whoami
shuai

" # normally indicates a root shell; $ normally indicates a non-root shell. 3.2 is the shell version. So sh-3.2$ is telling you that you don't have a root shell. (Typing whoami would also tell you that.) "

相关文章

网友评论

    本文标题:sh-3.2# - root权限后的shell prompt

    本文链接:https://www.haomeiwen.com/subject/bljctxtx.html