OSDN Git Service

Update translations: chroot, csplit, dd, du, pwd
[linuxjm/coreutils.git] / original / man1 / rm.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.3.
2 .TH RM "1" "January 2016" "GNU coreutils 8.25" "User Commands"
3 .SH NAME
4 rm \- remove files or directories
5 .SH SYNOPSIS
6 .B rm
7 [\fI\,OPTION\/\fR]... [\fI\,FILE\/\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 the \fI\-I\fR or \fI\-\-interactive\=once\fR option is given,
17 and there are more than three files or the \fI\-r\fR, \fI\-R\fR,
18 or \fI\-\-recursive\fR are given, then
19 .B rm
20 prompts the user for whether to proceed with the entire operation.  If
21 the response is not affirmative, the entire command is aborted.
22 .P
23 Otherwise, if a file is unwritable, standard input is a terminal, and
24 the \fI\-f\fR or \fI\-\-force\fR option is not given, or the
25 \fI\-i\fR or \fI\-\-interactive\=always\fR option is given,
26 .B rm
27 prompts the user for whether to remove the file.  If the response is
28 not affirmative, the file is skipped.
29 .SH OPTIONS
30 .PP
31 Remove (unlink) the FILE(s).
32 .TP
33 \fB\-f\fR, \fB\-\-force\fR
34 ignore nonexistent files and arguments, never prompt
35 .TP
36 \fB\-i\fR
37 prompt before every removal
38 .TP
39 \fB\-I\fR
40 prompt once before removing more than three files, or
41 when removing recursively; less intrusive than \fB\-i\fR,
42 while still giving protection against most mistakes
43 .TP
44 \fB\-\-interactive\fR[=\fI\,WHEN\/\fR]
45 prompt according to WHEN: never, once (\fB\-I\fR), or
46 always (\fB\-i\fR); without WHEN, prompt always
47 .TP
48 \fB\-\-one\-file\-system\fR
49 when removing a hierarchy recursively, skip any
50 directory that is on a file system different from
51 that of the corresponding command line argument
52 .TP
53 \fB\-\-no\-preserve\-root\fR
54 do not treat '/' specially
55 .TP
56 \fB\-\-preserve\-root\fR
57 do not remove '/' (default)
58 .TP
59 \fB\-r\fR, \fB\-R\fR, \fB\-\-recursive\fR
60 remove directories and their contents recursively
61 .TP
62 \fB\-d\fR, \fB\-\-dir\fR
63 remove empty directories
64 .TP
65 \fB\-v\fR, \fB\-\-verbose\fR
66 explain what is being done
67 .TP
68 \fB\-\-help\fR
69 display this help and exit
70 .TP
71 \fB\-\-version\fR
72 output version information and exit
73 .PP
74 By default, rm does not remove directories.  Use the \fB\-\-recursive\fR (\fB\-r\fR or \fB\-R\fR)
75 option to remove each listed directory, too, along with all of its contents.
76 .PP
77 To remove a file whose name starts with a '\-', for example '\-foo',
78 use one of these commands:
79 .IP
80 rm \fB\-\-\fR \fB\-foo\fR
81 .IP
82 rm ./\-foo
83 .PP
84 Note that if you use rm to remove a file, it might be possible to recover
85 some of its contents, given sufficient expertise and/or time.  For greater
86 assurance that the contents are truly unrecoverable, consider using shred.
87 .SH AUTHOR
88 Written by Paul Rubin, David MacKenzie, Richard M. Stallman,
89 and Jim Meyering.
90 .SH "REPORTING BUGS"
91 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
92 .br
93 Report rm translation bugs to <http://translationproject.org/team/>
94 .SH COPYRIGHT
95 Copyright \(co 2016 Free Software Foundation, Inc.
96 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
97 .br
98 This is free software: you are free to change and redistribute it.
99 There is NO WARRANTY, to the extent permitted by law.
100 .SH "SEE ALSO"
101 unlink(1), unlink(2), chattr(1), shred(1)
102 .PP
103 .br
104 Full documentation at: <http://www.gnu.org/software/coreutils/rm>
105 .br
106 or available locally via: info \(aq(coreutils) rm invocation\(aq