Преглед на файлове

Base: Add rm(1) manpage

networkException преди 3 години
родител
ревизия
121bcc267d
променени са 1 файла, в които са добавени 31 реда и са изтрити 0 реда
  1. 31 0
      Base/usr/share/man/man1/rm.md

+ 31 - 0
Base/usr/share/man/man1/rm.md

@@ -0,0 +1,31 @@
+## 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
+
+## Examples
+
+```sh
+# Remove README.md file
+$ rm README.md
+
+# Remove cpp-tests directory
+$ rm -r cpp-tests
+```