I. Directory management commands (mkdir, rmdir
The types of Linux files are:-: ordinary file case; d: directory file; b: block device file; C: Character device file; l: Link file; s: Socket file; p: Pipe file.
1. mkdir: Create directory (used for path base name, path name must exist before path base name)
mkdir [OPTION] ... DIRECTORY ...
OPTION:
-P: When creating a directory, the path name is created if the path before the base name of the path does not exist.
-V: Displays the process of creating the directory. Verbose
-M Mode: Set directory permissions when creating a directory, or default if the parameter mode is not given.
Extension: Creating/tmp/x/y1,/tmp/x/y2,/tmp/x/y1/a,/tmp/x/y1/b
Method One: #mkdir/tmp/x/y1/tmp/x/y2/tmp/x/y1/a/tmp/x/y1/b-PV
2, RmDir: Delete directory: (only to delete empty directory, and there is no option to force deletion)
rmdir [OPTION] ... DIRECTORY ...
OPTION
-P: When a directory is deleted, it is deleted if its parent directory is empty.
-V: Show removal process
Linux Directory Operations Command