mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
rmdir: add/refresh pages (#7993)
* Create `rmdir` copy with long options * Refresh pages: - update title - add `See also` link - use brace expansion in examples - refresh descriptions * Use imperative mood in titles * Don't use brace expansion
This commit is contained in:
parent
6cf81f993a
commit
1ae9202d7e
2 changed files with 19 additions and 5 deletions
|
@ -1,12 +1,13 @@
|
|||
# rmdir
|
||||
|
||||
> Removes a directory.
|
||||
> Remove directories without files.
|
||||
> See also: `rm`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/rmdir>.
|
||||
|
||||
- Remove directory, provided it is empty. Use `rm -r` to remove non-empty directories:
|
||||
- Remove specific directories:
|
||||
|
||||
`rmdir {{path/to/directory}}`
|
||||
`rmdir {{path/to/directory1 path/to/directory2 ...}}`
|
||||
|
||||
- Remove the target and its parent directories (useful for nested dirs):
|
||||
- Remove specific nested directories recursively:
|
||||
|
||||
`rmdir -p {{path/to/directory}}`
|
||||
`rmdir -p {{path/to/directory1 path/to/directory2 ...}}`
|
||||
|
|
13
pages/linux/rmdir.md
Normal file
13
pages/linux/rmdir.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# rmdir
|
||||
|
||||
> Remove directories without files.
|
||||
> See also: `rm`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/rmdir>.
|
||||
|
||||
- Remove specific directories:
|
||||
|
||||
`rmdir {{path/to/directory1 path/to/directory2 ...}}`
|
||||
|
||||
- Remove specific nested directories recursively:
|
||||
|
||||
`rmdir --parents {{path/to/directory1 path/to/directory2 ...}}`
|
Loading…
Add table
Reference in a new issue