RmDir is a commonly used command, the function of which is to delete an empty directory before a directory is deleted must be empty. (Note that the Rm-r dir command can be used instead of rmdir, but there is a lot of danger.) You must also have write access to the parent directory when you delete a directory.
1 . Command format:
rmdir [Options] ... Directory...
2 . Command function:
This command removes one or more subdirectory entries from a directory and must also have write access to the parent directory when a directory is deleted. ?
3 . Command parameters:
-P recursively delete a directory dirname , when a subdirectory is deleted, its parent directory is empty, and it is deleted together. If the entire path is deleted or a partial path is reserved for some reason, the system displays the appropriate information on the standard output. ?
-V,--verbose shows the instruction execution process ?
??
4 . Command instance:
Example One: rmdir cannot delete a non- empty directory
Command:
Rmdir?doc
Output:
?
Description
rmdir directory name ? Command cannot delete a non-empty directory directly
??
Example 2:rmdir-p When a subdirectory is deleted so that it becomes an empty directory, then delete it by the way ?
Command:
Rmdir-p logs
Output:
Linux command detailed-rmdir