Three commands to enter root

  1. Command, options and parameters
    2.1. What is the format of the
    command Command (Command) Options (options) (there can be more than one) Arguments (there can be more than one)
    $ is ordinary user
    ~ is home directory
    # is an administrator user
    2.1 The command entered under ls 1.ls
    Three commands to enter root
    -a hide files
    Three commands to enter root
    2.ls -l view file attributes
    Three commands to enter root
    3.ls / -l or ls -l / view attributes of files or folders under the root

Three commands to enter root
2.2 Command input in CD
CD or home directory cd ~
Three commands to enter root
cd .. back one level
Three commands to enter root
cd ../ .. Back on two
Three commands to enter root
cd / Back root
Three commands to enter root
cd ../d quick access to the same layer as the folder
e.g. : Create a folder a in the home directory, then create a folder b, d in the a folder, create a folder c in the b folder,
Three commands to enter root
Three commands to enter root
Three commands to enter root
Three commands to enter root
Three commands to enter root
step into the c folder,
Three commands to enter root
step into the d folder
Three commands to enter root

2.2. Enter root in two modes
1. Entering sudo su in ordinary users does not change the path
Three commands to enter root
2. Entering su in ordinary users-root returns to root's home directory
Three commands to enter root
3.sudo -i

Three commands to enter root

Guess you like

Origin blog.51cto.com/15011774/2562575