mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
23 lines
523 B
Plaintext
23 lines
523 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# rmdir
|
|
|
|
> Remove directories without files.
|
|
> See also: `rm`.
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/rmdir-invocation.html>.
|
|
|
|
- Remove specific directories:
|
|
|
|
`rmdir {{path/to/directory1 path/to/directory2 ...}}`
|
|
|
|
- Remove specific nested directories recursively:
|
|
|
|
`rmdir {{[-p|--parents]}} {{path/to/directory1 path/to/directory2 ...}}`
|
|
|
|
- Clean a directory of empty directories:
|
|
|
|
`rmdir *`
|