OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / gnumaniak / draft / man1 / rm.1
1 .\" Copyright Andries Brouwer, A. Wik 1998, Ragnar Hojland Espinosa 1998-2002
2 .\"
3 .\" This file may be copied under the conditions described
4 .\" in the LDP GENERAL PUBLIC LICENSE, Version 1, September 1998
5 .\" that should have been distributed together with this file.
6 .\"
7 .\" Japanese Version Copyright (c) 1999 Yuichi SATO
8 .\"         all rights reserved.
9 .\" Translated Wed Nov  3 17:04:31 JST 1999
10 .\"         by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
11 .\"
12 .TH RM 1 "18 June 2002" "GNU fileutils 4.1"
13 .\"O .SH NAME
14 .SH Ì¾Á°
15 .\"O rm \- remove files or directories
16 rm \- ¥Õ¥¡¥¤¥ë¤ä¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤¹¤ë
17 .\"O .SH SYNOPSIS
18 .SH ½ñ¼°
19 .\"O .BI "rm [" options "] " file...
20 .BI "rm [" ¥ª¥×¥·¥ç¥ó "] " file...
21 .sp
22 .\"O POSIX options:
23 POSIX ¥ª¥×¥·¥ç¥ó:
24 .B [\-fiRr]
25 .sp
26 .\"O GNU options (shortest form):
27 GNU ¥ª¥×¥·¥ç¥ó (´Êά·Á¼°):
28 .B [\-dfirvR]
29 .B "[\-\-help] [\-\-version] [\-\-]"
30 .\"O .SH DESCRIPTION
31 .SH ÀâÌÀ
32 .\"O .B rm
33 .\"O removes each given
34 .\"O .IR file .
35 .\"O By default, it does not remove directories.
36 .\"O But when the \-r or \-R option is given, the entire directory tree
37 .\"O below the specified directory is removed (and there are no limitations
38 .\"O on the depth of directory trees that can be removed by `rm -r').
39 .\"O It is an error when the last path component of
40 .\"O .I file
41 .\"O is either . or ..
42 .\"O (so as to avoid unpleasant surprises with `rm -r .*' or so).
43 .B rm
44 ¤Ï»ØÄꤵ¤ì¤¿
45 .I file
46 ¤òºï½ü¤¹¤ë¡£
47 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤Îºï½ü¤ò¹Ô¤ï¤Ê¤¤¡£
48 ¤·¤«¤· \-r ¤ä \-R ¥ª¥×¥·¥ç¥ó¤Ç»Ø¼¨¤µ¤ì¤ë¤È¡¢»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Î
49 Á´¥Ç¥£¥ì¥¯¥È¥ê¥Ä¥ê¡¼¤¬ºï½ü¤µ¤ì¤ë
50 (`rm -r' ¤Çºï½ü¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¥Ä¥ê¡¼¤Î¿¼¤µ¤ËÀ©¸Â¤Ï¤Ê¤¤)¡£
51 .I file
52 ¤Î¥Ñ¥¹¹½À®Í×ÁǤκǸ夬 . ¤â¤·¤¯¤Ï .. ¤Î¾ì¹ç¤Ï¥¨¥é¡¼¤Ë¤Ê¤ë
53 (`rm -r .*' ¤Ê¤É¤È¤ä¤Ã¤¿¤¢¤È¤Ç¶Ã¤«¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Ç¤¢¤ë)¡£
54 .PP
55 .\"O If the \-i option is given, or
56 .\"O if a file is unwritable, standard input is a terminal, and the
57 .\"O .B "\-f"
58 .\"O option is not given,
59 .\"O .B rm
60 .\"O prompts the user for whether to remove the file, writing a question
61 .\"O to stderr and reading an answer from stdin.  If the response
62 .\"O is not affirmative, the file is skipped.
63 \-i ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢
64 ¤Þ¤¿¤Ï¥Õ¥¡¥¤¥ë¤¬½ñ¤­¹þ¤ßÉԲĤǡ¢É¸½àÆþÎϤ¬Ã¼Ëö¤Ç¤¢¤ê¡¢¤«¤Ä
65 .B "\-f"
66 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
67 .B rm
68 ¤Ï¥æ¡¼¥¶¡¼¤Ë¥Õ¥¡¥¤¥ë¤òºï½ü¤·¤Æ¤è¤¤¤«¤òÌ䤤¹ç¤ï¤»¤ë¡£
69 Ì䤤¹ç¤ï¤»¤Ïɸ½à¥¨¥é¡¼¤Ë½ñ¤­½Ð¤µ¤ì¡¢ÊÖÅú¤Ïɸ½àÆþÎϤ«¤éÆɤ߹þ¤Þ¤ì¤ë¡£
70 ÊÖÅú¤¬ºï½ü¤ò¹ÎÄꤷ¤Æ¤¤¤Ê¤¤¤â¤Î¤Ê¤é¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Ïºï½ü¤µ¤ì¤Ê¤¤¡£
71 .\"O .SH "POSIX OPTIONS"
72 .SH "POSIX ¥ª¥×¥·¥ç¥ó"
73 .TP
74 .B "\-f"
75 .\"O Do not prompt for confirmation. Do not write diagnostic messages.
76 .\"O Do not produce an error return status if the only errors were
77 .\"O nonexisting files.
78 ºï½ü¤Î³Îǧ¤ÎÌ䤤¹ç¤ï¤»¤ò¤·¤Ê¤¤¡£ÂÐÏÃ¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤Ê¤¤¡£
79 ñ¤Ë¸ºß¤·¤Ê¤¤¥Õ¥¡¥¤¥ë¤Ë¤è¤ë¥¨¥é¡¼¤Ê¤é¡¢
80 ¥¨¥é¡¼¾õÂÖ¤òÊÖ¤µ¤Ê¤¤¡£
81 .TP
82 .B "\-i"
83 .\"O Prompt for confirmation.
84 .\"O (In case both \-f and \-i are given, the last one given takes effect.)
85 ºï½ü¤Î³Îǧ¤ÎÌ䤤¹ç¤ï¤»¤ò¤¹¤ë¡£
86 (\-f ¤È \-i ¤¬Î¾Êý¤È¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
87 ¸å¤«¤é»ØÄꤵ¤ì¤¿Êý¤Î¥ª¥×¥·¥ç¥ó¤¬Í­¸ú¤Ë¤Ê¤ë¡£)
88 .TP
89 .BR "\-r" " ¤Þ¤¿¤Ï " "\-R"
90 .\"O Recursively remove directory trees.
91 ºÆµ¢Åª¤Ë¥Ç¥£¥ì¥¯¥È¥ê¥Ä¥ê¡¼¤òºï½ü¤¹¤ë
92 .\"O .SH "SVID DETAILS"
93 .\"O The System V Interface Definition forbids removal of the
94 .\"O last link to an executable binary file that is being executed.
95 .SH "SVID ¾ÜºÙ"
96 System V ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹ÄêµÁ¤Ç¤Ï¡¢¸½ºß¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë
97 ¼Â¹Ô²Äǽ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Ø¤ÎºÇ¸å¤Î¥ê¥ó¥¯¤òºï½ü¤¹¤ë¤³¤È¤¬¶Ø»ß¤µ¤ì¤Æ¤¤¤ë¡£
98 .\"O .SH "GNU DETAILS"
99 .\"O The GNU implementation (in fileutils-3.16) is broken in the sense
100 .\"O that there is an upper limit to the depth of hierarchies that can be
101 .\"O removed. (If necessary, a utility `deltree' can be used to remove
102 .\"O very deep trees.)
103 .SH "GNU ¾ÜºÙ"
104 ºï½ü¤Ç¤­¤ë¥Ç¥£¥ì¥¯¥È¥ê³¬Áؤο¼¤µ¤Ë¾å¸Â¤¬¤¢¤ë¤È¤¤¤¦ÅÀ¤Ç
105 (fileutils-3.16 ¤Ë¤ª¤±¤ë) GNU ÈǤμÂÁõ¤Ï´Ö°ã¤Ã¤Æ¤¤¤ë¡£
106 (ɬÍפʤé¤Ð¡¢¤È¤Æ¤â¿¼¤¤¥Ä¥ê¡¼¤òºï½ü¤¹¤ë¤Î¤Ë
107 `deltree' ¤È¤¤¤¦¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬»È¤¨¤ë¡£)
108 .\"O .SH "GNU OPTIONS"
109 .SH "GNU ¥ª¥×¥·¥ç¥ó"
110 .TP
111 .B "\-d, \-\-directory"
112 .\"O Remove directories with
113 .\"O .BR unlink (2)
114 .\"O instead of 
115 .\"O .BR rmdir (2),
116 .\"O and don't
117 .\"O require a directory to be empty before trying to unlink it.  Only
118 .\"O works if you have appropriate privileges.  Because unlinking a
119 .\"O directory causes any files in the deleted directory to become
120 .\"O unreferenced, it is wise to 
121 .\"O .BR fsck (8)
122 .\"O the filesystem after doing this.
123 .BR rmdir (2)
124 ¤Ç¤Ï¤Ê¤¯
125 .BR unlink (2)
126 ¤Ë¤è¤ê¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤¹¤ë¡£
127 ¥¢¥ó¥ê¥ó¥¯¤¹¤ëÁ°¤Ë¥Ç¥£¥ì¥¯¥È¥ê¤ò¶õ¤Ë¤¹¤ëɬÍפϤʤ¤¡£
128 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ÏŬÀڤʸ¢¸Â¤ò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßµ¡Ç½¤¹¤ë¡£
129 ¥¢¥ó¥ê¥ó¥¯¤¹¤ë¤È¡¢ºï½ü¤µ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë¿¤¯¤Î¥Õ¥¡¥¤¥ë¤¬
130 »²¾È¤µ¤ì¤Ê¤¯¤Ê¤ë¤Î¤Ç¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë
131 .BR fsck (8)
132 ¤òŬÍѤ¹¤ë¤Î¤¬¸­ÌÀ¤Ç¤¢¤ë¡£
133 .TP
134 .B "\-f, \-\-force"
135 .\"O Ignore nonexistent files and never prompt the user.
136 ¸ºß¤·¤Ê¤¤¥Õ¥¡¥¤¥ë¤ò̵»ë¤¹¤ë¡£¥æ¡¼¥¶¡¼¤Ëºï½ü¤ÎÌ䤤¹ç¤ï¤»¤ò¤·¤Ê¤¤¡£
137 .TP
138 .B "\-i, \-\-interactive"
139 .\"O Prompt whether to remove each file.  
140 .\"O If the response does not begin with `y' or `Y', the file is skipped.  
141 .\"O Ignore previous \fB\-\-force\fR options.
142 ¤½¤ì¤¾¤ì¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ¡¢ºï½ü¤ÎÌ䤤¹ç¤ï¤»¤ò¤¹¤ë¡£
143 ÊÖÅú¤¬ `y' ¤Þ¤¿¤Ï `Y' ¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Ïºï½ü¤·¤Ê¤¤¡£
144 Á°¤Ë¤¢¤ë \fB\-\-force\fR ¥ª¥×¥·¥ç¥ó¤ò̵»ë¤¹¤ë¡£
145 .TP
146 .B "\-r, \-R, \-\-recursive"
147 .\"O Remove the contents of directories recursively.
148 ¥Ç¥£¥ì¥¯¥È¥ê¤ÎÃæ¿È¤òºÆµ¢Åª¤Ëºï½ü¤¹¤ë¡£
149 .TP
150 .B "\-v, \-\-verbose"
151 .\"O Print the name of each file before removing it.
152 ºï½ü¤¹¤ëÁ°¤Ë¤½¤ì¤¾¤ì¤Î¥Õ¥¡¥¤¥ë̾¤ò½ÐÎϤ¹¤ë¡£
153 .\"O .SH "GNU STANDARD OPTIONS"
154 .SH "GNU É¸½à¥ª¥×¥·¥ç¥ó"
155 .TP
156 .B "\-\-help"
157 .\"O Print a usage message on standard output and exit successfully.
158 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
159 .TP
160 .B "\-\-version"
161 .\"O Print version information on standard output, then exit successfully.
162 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
163 .TP
164 .B "\-\-"
165 .\"O Terminate option list.
166 ¥ª¥×¥·¥ç¥ó¥ê¥¹¥È¤ò½ªÎ»¤¹¤ë¡£
167 .\"O .SH ENVIRONMENT
168 .\"O The variables LANG, LC_ALL, LC_COLLATE, LC_CTYPE and LC_MESSAGES have the
169 .\"O usual meaning.
170 .SH ´Ä¶­ÊÑ¿ô
171 ÊÑ¿ô LANG, LC_ALL, LC_COLLATE, LC_CTYPE, LC_MESSAGES ¤¬Ä̾ï¤Î°ÕÌ£¤ò»ý¤Ä¡£
172 .\"O .SH "CONFORMING TO"
173 .\"O POSIX 1003.2, except for the limitation on file hierarchy depth.
174 .SH ½àµò
175 POSIX 1003.2 ¤Ë½àµò¤¹¤ë¤¬¡¢ºï½ü¤Ç¤­¤ë¥Ç¥£¥ì¥¯¥È¥ê³¬Áؤο¼¤µ¤ËÀ©¸Â¤¬¤¢¤ë¡£
176 .\"O .SH NOTES
177 .\"O This page describes
178 .\"O .B rm
179 .\"O as found in the fileutils-4.1 package;
180 .\"O other versions may differ slightly. Mail corrections and additions to
181 .\"O aeb@cwi.nl and aw@mail1.bet1.puv.fi and ragnar@macula.net .
182 .\"O Report bugs in the program to bug-fileutils@gnu.org.
183 .SH Ãí°Õ
184 ¤³¤Î¥Ú¡¼¥¸¤Ç¤Ï fileutils-4.1 ¥Ñ¥Ã¥±¡¼¥¸¤Ç¤Î
185 .B rm
186 ¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Æ¤¤¤ë¡£
187 ¤½¤Î¾¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¾¯¤·°ã¤¤¤¬¤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
188 ½¤Àµ¤äÄɲäϠaeb@cwi.nl, aw@mail1.bet1.puv.fi, ragnar@ragnar-hojland.com
189 °¸¤Ë¥á¥¤¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
190 ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-fileutils@gnu.org ¤ØÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£