summaryrefslogtreecommitdiff
path: root/man/rm.x
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-09-12 20:20:30 +0000
committerJim Meyering <jim@meyering.net>1998-09-12 20:20:30 +0000
commit745cee714a4c643f2464a9446d9c93186069f559 (patch)
tree9551a7814d3b92a5bc84edf32b4a7abe2bf58a3b /man/rm.x
parent6d16699fff7fdd7021e3065082ea6d777bc38882 (diff)
downloadcoreutils-745cee714a4c643f2464a9446d9c93186069f559.tar.xz
.
Diffstat (limited to 'man/rm.x')
-rw-r--r--man/rm.x34
1 files changed, 33 insertions, 1 deletions
diff --git a/man/rm.x b/man/rm.x
index 76e18ad71..e57ef3fda 100644
--- a/man/rm.x
+++ b/man/rm.x
@@ -1,2 +1,34 @@
[DESCRIPTION]
-." Add any additional description here
+This manual page
+documents the GNU version of
+.BR rm .
+.B rm
+removes each specified file. By default, it does not remove
+directories.
+.P
+If a file is unwritable, the standard input is a tty, and
+the \fI\-f\fR or \fI\-\-force\fR option is not given,
+.B rm
+prompts the user for whether to remove the file. If the response
+does not begin with `y' or `Y', the file is skipped.
+.LP
+GNU
+.BR rm ,
+like every program that uses the getopt function to parse its
+arguments, lets you use the
+.I \-\-
+option to indicate that all following arguments are non-options. To
+remove a file called `\-f' in the current directory, you could type
+either
+.RS
+rm \-\- \-f
+.RE
+or
+.RS
+rm ./\-f
+.RE
+The Unix
+.B rm
+program's use of a single `\-' for this purpose predates the
+development of the getopt standard syntax.
+.SH OPTIONS