1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 05:54:59 +00:00
serenity/Base/usr/share/man/man1/rm.md
kleines Filmröllchen afaea38be2 Base: Expand "See Also" sections of many manpages
This commit focuses on the CLI utilities.
2023-07-06 10:03:48 +01:00

35 lines
658 B
Markdown

## Name
rm - Remove files
## Synopsis
```**sh
$ rm [options...] <path...>
```
## Description
`rm` removes files specified in `path`.
If a directory is specified in `path`, the `-r` (recursive) flag is required. Otherwise, an error occurs.
## Options
* `-r`, `--recursive`: Remove files and directories recursively
* `-f`, `--force`: Do not prompt before removing
* `-v`, `--verbose`: Display what files are removed
* `--no-preserve-root`: Do not treat '/' specially
## Examples
```sh
# Remove README.md file
$ rm README.md
# Remove Tests directory
$ rm -r Tests
```
## See also
* [`rmdir`(1)](help://man/1/rmdir) to just delete empty directories