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