1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 05:46:00 +02:00
tldr/pages/common/rmdir.md
2021-03-30 07:18:51 -03:00

12 lines
360 B
Markdown

# rmdir
> Removes a directory.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/rmdir-invocation.html>.
- 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}}`