tree
- Tree: displays a directory
- -d: Displays only directories
- -l (level) : indicates the level directory to be displayed
- -p (pattern) : displays only the paths matched by the specified pattern
mkdir
- Mkdir: creates a directory
- -p: the directory exists without error and can be automatically created
- -v: Displays detailed information
- -m (mode) : specifies the permission for creating a directory
rmdir
- Rmdir: Delete an empty directory
- -p: Deletes an empty parent directory recursively
- -v: Displays detailed information
rm
-
Rm -r: Deletes the directory tree recursively
Mkdir /data/data1/ data2-p: displays the process of creating a recursive directoryCopy the code