Linux root用户与普通用户切换


普通用户切换到root用户

itaken@itaken-home:~$ sudo -i
root@itaken-home:~#

root用户切换到普通用户

root@itaken-home:~# su - itaken
itaken@itaken-home:~$

参考文档


Author: Itaken
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source Itaken !
  TOC目录