The navigation of the file system is a continuous process of accessing nodes in the tree structure.
File System Tree
linux only One inverted file system tree
different devices can be mounted on this same tree
Files and subdirectories are part of this tree, the top-most of which is the root directory
Directory
Depending on the relative relationship between tree nodes, there are:
- Current working directory
The directory where the user is located
Delegate symbol:.
Print path command: pwd
Back to previous working directory: cd-
- Home Directory
The current working directory is set to the primary directory when the system is first logged on or when the terminal emulator is first launched
For ordinary users, the home directory is the only place where write operations can be performed
Return root directory: CD
Returns the home directory for the specified user: Cd~username
- Parent Directory
- Sub-directories
Show Directory Contents
ls: Displays the current directory file and directory
Attention:
To. The file that starts with is not displayed by default
-ls can also display other directory contents
Directory Navigation
for auxiliary navigation, Linux provides special symbols:. and.:
. : Current working directory
.. : Current working Directory parent directory
Note:./Can be ignored
Relative path
Route to the specified directory relative to the current working directory
Absolute path
Route to the specified directory relative to the home directory
"Linux command line Daquan" series (Ii., navigation)