工具

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

2017-05-02  本文已影响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.) "

上一篇下一篇

猜你喜欢

热点阅读