Name
rmdir
Synopsis
rmdir [options
]directories
Delete the named directories (not the contents). directories are deleted from the parent directory and must be empty (if not, rm -r can be used instead). See also mkdir.
Options
- --help
Print a help message and then exit.
- --ignore-fail-on-non-empty
Ignore failure to remove directories that are not empty.
- -p, --parents
Remove directories and any intervening parent directories that become empty as a result. Useful for removing subdirectory trees.
- -v, --verbose
Verbose mode; print message for each directory as it is processed.
- --version
Print version information and then exit.
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.