source: trunk/coreutils/man/rm.1@ 2746

Last change on this file since 2746 was 2554, checked in by bird, 20 years ago

coretuils-5.94

File size: 2.5 KB
Line 
1.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2.TH RM "1" "February 2006" "rm 5.94" "User Commands"
3.SH NAME
4rm \- remove files or directories
5.SH SYNOPSIS
6.B rm
7[\fIOPTION\fR]... \fIFILE\fR...
8.SH DESCRIPTION
9This manual page
10documents the GNU version of
11.BR rm .
12.B rm
13removes each specified file. By default, it does not remove
14directories.
15.P
16If a file is unwritable, the standard input is a tty, and
17the \fI\-f\fR or \fI\-\-force\fR option is not given,
18.B rm
19prompts the user for whether to remove the file. If the response
20is not affirmative, the file is skipped.
21.SH OPTIONS
22.PP
23Remove (unlink) the FILE(s).
24.TP
25\fB\-d\fR, \fB\-\-directory\fR
26unlink FILE, even if it is a non\-empty directory
27(super\-user only; this works only if your system
28.IP
29supports `unlink' for nonempty directories)
30.TP
31\fB\-f\fR, \fB\-\-force\fR
32ignore nonexistent files, never prompt
33.TP
34\fB\-i\fR, \fB\-\-interactive\fR
35prompt before any removal
36.HP
37\fB\-\-no\-preserve\-root\fR do not treat `/' specially (the default)
38.TP
39\fB\-\-preserve\-root\fR
40fail to operate recursively on `/'
41.TP
42\fB\-r\fR, \fB\-R\fR, \fB\-\-recursive\fR
43remove directories and their contents recursively
44.TP
45\fB\-v\fR, \fB\-\-verbose\fR
46explain what is being done
47.TP
48\fB\-\-help\fR
49display this help and exit
50.TP
51\fB\-\-version\fR
52output version information and exit
53.PP
54By default, rm does not remove directories. Use the \fB\-\-recursive\fR (\fB\-r\fR or \fB\-R\fR)
55option to remove each listed directory, too, along with all of its contents.
56.PP
57To remove a file whose name starts with a `\-', for example `\-foo',
58use one of these commands:
59.IP
60rm \fB\-\-\fR \fB\-foo\fR
61.IP
62rm ./\-foo
63.PP
64Note that if you use rm to remove a file, it is usually possible to recover
65the contents of that file. If you want more assurance that the contents are
66truly unrecoverable, consider using shred.
67.SH AUTHOR
68Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering.
69.SH "REPORTING BUGS"
70Report bugs to <bug\[email protected]>.
71.SH COPYRIGHT
72Copyright \(co 2006 Free Software Foundation, Inc.
73.br
74This is free software. You may redistribute copies of it under the terms of
75the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
76There is NO WARRANTY, to the extent permitted by law.
77.SH "SEE ALSO"
78chattr(1), shred(1)
79.PP
80The full documentation for
81.B rm
82is maintained as a Texinfo manual. If the
83.B info
84and
85.B rm
86programs are properly installed at your site, the command
87.IP
88.B info rm
89.PP
90should give you access to the complete manual.
Note: See TracBrowser for help on using the repository browser.