Article Title: newbie School: file path commands in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Absolute path and relative path
Shell command:
Cd/home: the path with "/" is absolute and directly enters the home directory;
Cd ...... : Go to the upper-level directory;
Cd-: returns the last directory;
Pwd: displays the current directory;
Cd ~ : Indicates the current user directory, that is,/home/(User Name );
Cd (directory name): relative path,
Ls: Understand the files in the current directory.
Ls-a: view the list of all files in the current directory (including hidden files );
Each directory has two special directories:... and ...... ; "." Indicates the current directory: "... "Indicates the upper-level directory;
We can Tianjia
Su username: indicates the user name to be switched. If no target is switched after su, the default value is root;
Su-username: switches the entire environment.