tldr/pages/common/rmdir.md

13 lines
360 B
Markdown
Raw Normal View History

2014-02-17 16:49:17 +00:00
# rmdir
> Removes a directory.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/rmdir-invocation.html>.
2014-02-17 16:49:17 +00:00
2020-07-08 14:15:57 +01:00
- Remove directory, provided it is empty. Use `rm -r` to remove non-empty directories:
2014-02-17 16:49:17 +00:00
`rmdir {{path/to/directory}}`
2014-02-17 16:49:17 +00:00
- Remove the target and its parent directories (useful for nested dirs):
2014-02-17 16:49:17 +00:00
`rmdir -p {{path/to/directory}}`