Course connection: basic structure of the Linux File System
File System Structure
1. System Structure
- A Linux File is an inverted single tree structure.
- The root of the file system is "/".
- File systems are case sensitive.
- The path is separated by "/", and ipvs is "\".
2. current working directory
- Each shell or system process has a current working directory.
- The pwd command displays the current working directory.
3. File Name
- File Name Is case sensitive
- The name can be up to 255 characters
- All are valid characters except the forward slash.
- You can use the touch command to create a blank file or update the existing file time.
- A file starting with "." is a hidden file.
4. List contents in the current directory ----- ls
- -A: displays all files, including hidden files.
- -L display details
- -R recursive display subdirectory
- -Ld: List Directory and link information
5. view files
- File + <file Name> View file Type
6. absolute path and relative path absolute path: the path starting with "/", recursively returning each level of directory to the target path, not limited by the current working directory. Relative Path: The Path to the target starting from the current directory, which is restricted by the current working directory.
7. Switch directory ----- cd
- ".." Upper-level directory
- "." Current Directory
- "~" User home directory
- -"Previous working directory
The root user's add directory is "/" cd. Press enter to return to the user's home directory.
This command