strong@foreverstrong:~$
strong@foreverstrong:~$ sudo su
[sudo] password for strong:
root@foreverstrong:/home/strong#
root@foreverstrong:/home/strong#
root@foreverstrong:/home/strong# exit
exit
strong@foreverstrong:~$
strong@foreverstrong:~$
2. root 用户与 user 用户切换
其中 strong 是系统的一个帐户名。
strong@foreverstrong:~$
strong@foreverstrong:~$ sudo su
root@foreverstrong:/home/strong#
root@foreverstrong:/home/strong# su - strong
strong@foreverstrong:~$