rmdir
Removes a directory. More information: https://www.gnu.org/software/coreutils/rmdir.
- Remove directory, provided it is empty. Use
rm -r
to remove non-empty directories:rmdir {{path/to/directory}}
- Remove the target and its parent directories (useful for nested dirs):
rmdir -p {{path/to/directory}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.