The Linux file system is an inverted tree structure, all files or folders are contained in a root directory "/".
Linux systems are strictly case-sensitive and have a name of up to 255 characters
All valid characters except forward slash
Each shell has a current working directory, with command pwd (print work directory) to view the current working directory
Touch command: Create a blank file or update the (last modified) time of an existing file
The file that starts with. is a hidden file, and most of the hidden files are configuration files.
The command "LS" can list current directory information and support the following parameters:
LS-A displays all files, including hidden files
Ls-l Show details of files
Ls-r recursively display subdirectory information
LS-LD Display directory and link information
Command ' file ' can be used to view the file type of the specified file
Linux directory management uses both absolute and relative paths:
Absolute path: To the root directory "/" as the starting point, recursively each level of directory until the destination file/folder, such as:/etc/passwd
Relative path: The path to the destination file/folder, starting at the current directory, such as:. /.. /etc/passwd
The relative path is basically defined as: ".." Represents the Superior directory, "." Represents the current directory,
"~" represents the current user's home directory, and "-" represents the previous working directory
CD ~ Back home directory, direct CD + return is also home directory, no matter in any directory, cd+ return is home directory
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/