[Linux] under the root directory, home directory distinction, and ordinary users switching to the root user

A: home directory

Ordinary user, the home directory is / home / username

root, home directory is / root

root login system, execute the following command into the home directory of root

cd / cd ~

After entering the home directory execute the following command to obtain a specific path

pwd

II: User Switching

Cut from a normal user to root: 1.su 2. su root password is required

Common root cut out from the user to the user: 1. su username password is not required 2.ctl + d

 

 

Guess you like

Origin www.cnblogs.com/xioawu-blog/p/10990033.html