File system architecture for Linux
Linux file system for an inverted single root tree structure
The root of the file system is "/"
File systems are strictly case-sensitive
The path uses "/" to split, in Windows using the
Current working directory
1 each shell or system process has a current working directory
2 Use the PWD command to display the current working directory
3. File name
File name Case Sensitive
The name has a maximum of 255 characters
is a valid character except for a forward slash
You can create a file by using the Touch command, or update the time of an existing file
With the "." Files that start with are hidden files
4. Listing the contents of the catalog
1 ls-a display all files (including hidden files)
2 ls-l Show details of all files
In Ubuntu you can use LL instead
3 Ls-r recursively display subdirectory information
4 ls-ld Display directory and link information
5. View File types
1 We use file to view the types of files
6. Absolute path and relative path
1 absolute path: to the root directory "/" as the starting point, recursively each level of directory until the destination file/folder, such as:/etc/passwd
Absolute paths are not affected by the current directory, and absolute paths are unique
2 relative path: The path to the destination file/folder, starting with the current directory, such as: ... /.. /etc/passwd
Relative paths are affected by the current directory
3 relative path Basic definition:
“..” Represents the parent directory
“.” Represents the current directory
"~" represents the current user's home directory (each user has a home directory)
"-" represents the previous working directory
4 No matter what directory, CD return is the home directory
5 graph of relative path and absolute path, from PWD in graph to dest