View directory commands
1. Check the usage of directory commands
The command | instructions |
---|---|
ls | View information about the current directory |
tree | Displays directory information in tree form |
Effect of the ls command:
Tree command effect:
2. View the current directory path
The command | instructions |
---|---|
pwd | View the current directory path |
Effect of the PWD command:
3. Clear terminal content
The command | instructions |
---|---|
clear | Clearing Terminal Contents |
4. Summary
- Ls and tree are the most commonly used commands to view directory information
- Ls can view information about only one layer of directories
- Tree Displays multi-level directory information.
note
If you have any questions or suggestions, please add wechat: 13960699696.