mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:47:44 +00:00
Base: Add manpages for cut, diff, head & rmdir command line utilities
This commit is contained in:
parent
87068896d0
commit
d364c8e352
4 changed files with 155 additions and 0 deletions
34
Base/usr/share/man/man1/rmdir.md
Normal file
34
Base/usr/share/man/man1/rmdir.md
Normal file
|
@ -0,0 +1,34 @@
|
|||
## Name
|
||||
|
||||
rmdir - remove empty directories
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ rmdir `[directory...]`
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Remove given `directory(ies)`, if they are empty
|
||||
|
||||
## Arguments
|
||||
|
||||
* `directory`: directory(ies) to remove
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
# Try to remove non-empty directory
|
||||
$ mkdir serenity ; echo cool > serenity/cool.txt
|
||||
$ rmdir serenity
|
||||
rmdir: Directory not empty
|
||||
|
||||
# Remove empty directory
|
||||
$ mkdir example
|
||||
$ ls -a example
|
||||
. ..
|
||||
$ rmdir example
|
||||
$ ls -a example
|
||||
example: No such file or directory
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue