version 3, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
RM |
|
|
2 |
!!!RM |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
AUTHOR |
|
|
8 |
REPORTING BUGS |
|
|
9 |
COPYRIGHT |
|
|
10 |
SEE ALSO |
3 |
JaredWigmore |
11 |
AddToMe:User Submitted Notes[1] |
1 |
perry |
12 |
---- |
|
|
13 |
!!NAME |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
rm - remove files or directories |
|
|
17 |
!!SYNOPSIS |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
__rm__ [[''OPTION'']... ''FILE''... |
|
|
21 |
!!DESCRIPTION |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
This manual page documents the GNU version of __rm__. |
|
|
25 |
__rm__ removes each specified file. By default, it does |
|
|
26 |
not remove directories. |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
If a file is unwritable, the standard input is a tty, and |
|
|
30 |
the ''-f'' or ''--force'' option is not given, |
|
|
31 |
__rm__ prompts the user for whether to remove the file. |
|
|
32 |
If the response does not begin with `y' or `Y', the file is |
|
|
33 |
skipped. |
|
|
34 |
!!OPTIONS |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
Remove (unlink) the FILE(s). |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
__-d__, __--directory__ |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
attempt to unlink target, even if non-empty (super-user |
|
|
44 |
only) |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
__-f__, __--force__ |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
ignore nonexistent files, never prompt |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
__-i__, __--interactive__ |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
prompt before any removal |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
__-r__, __-R__, __--recursive__ |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
remove the contents of directories recursively |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
__-v__, __--verbose__ |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
explain what is being done |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
__--help__ |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
display this help and exit |
|
|
75 |
|
|
|
76 |
|
|
|
77 |
__--version__ |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
output version information and exit |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
To remove a file whose name starts with a `-', for example |
|
|
84 |
`-foo', use one of these commands: |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
../src/rm __-- -foo__ |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
../src/rm ./-foo |
|
|
91 |
|
|
|
92 |
|
|
|
93 |
Note that if you use rm to remove a file, it is usually |
3 |
JaredWigmore |
94 |
possible to recover the contents of that file[1]. If you want |
1 |
perry |
95 |
more assurance that the contents are truly unrecoverable, |
|
|
96 |
consider using shred. |
|
|
97 |
!!AUTHOR |
|
|
98 |
|
|
|
99 |
|
2 |
perry |
100 |
Written by Paul Rubin, David !MacKenzie, Richard Stallman, |
1 |
perry |
101 |
and Jim Meyering. |
|
|
102 |
!!REPORTING BUGS |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
Report bugs to |
|
|
106 |
!!COPYRIGHT |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
Copyright 2001 Free Software Foundation, Inc. |
|
|
110 |
This is free software; see the source for copying |
|
|
111 |
conditions. There is NO warranty; not even for |
|
|
112 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
|
113 |
PURPOSE. |
|
|
114 |
!!SEE ALSO |
|
|
115 |
|
|
|
116 |
|
3 |
JaredWigmore |
117 |
shred(1) NewUserTips |
1 |
perry |
118 |
|
|
|
119 |
|
|
|
120 |
The full documentation for __rm__ is maintained as a |
|
|
121 |
Texinfo manual. If the __info__ and __rm__ programs |
|
|
122 |
are properly installed at your site, the |
|
|
123 |
command |
|
|
124 |
|
|
|
125 |
|
|
|
126 |
__info rm__ |
|
|
127 |
|
|
|
128 |
|
|
|
129 |
should give you access to the complete manual. |
|
|
130 |
---- |
3 |
JaredWigmore |
131 |
!!User Submitted Notes |
|
|
132 |
[1] Using direct access to the block device as root. AddToMe. --JaredWigmore |