Linux File Path (command)-General Linux technology-Linux technology and application information. For more information, see. 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
Su username: indicates the user name to be switched. If no target is switched after su, the default value is root;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service