1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2 .\"*******************************************************************
4 .\" This file was generated with po4a. Translate the source file.
6 .\"*******************************************************************
7 .TH CP 1 "April 2010" "GNU coreutils 8.5" ユーザーコマンド
9 cp \- copy files and directories
11 \fBcp\fP [\fIOPTION\fP]... [\fI\-T\fP] \fISOURCE DEST\fP
13 \fBcp\fP [\fIOPTION\fP]... \fISOURCE\fP... \fIDIRECTORY\fP
15 \fBcp\fP [\fIOPTION\fP]... \fI\-t DIRECTORY SOURCE\fP...
17 .\" Add any additional description here
19 Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
21 Mandatory arguments to long options are mandatory for short options too.
23 \fB\-a\fP, \fB\-\-archive\fP
24 same as \fB\-dR\fP \fB\-\-preserve\fP=\fIall\fP
26 \fB\-\-backup\fP[=\fICONTROL\fP]
27 make a backup of each existing destination file
30 like \fB\-\-backup\fP but does not accept an argument
32 \fB\-\-copy\-contents\fP
33 copy contents of special files when recursive
36 same as \fB\-\-no\-dereference\fP \fB\-\-preserve\fP=\fIlinks\fP
38 \fB\-f\fP, \fB\-\-force\fP
39 if an existing destination file cannot be opened, remove it and try again
40 (redundant if the \fB\-n\fP option is used)
42 \fB\-i\fP, \fB\-\-interactive\fP
43 prompt before overwrite (overrides a previous \fB\-n\fP option)
46 follow command\-line symbolic links in SOURCE
48 \fB\-l\fP, \fB\-\-link\fP
49 link files instead of copying
51 \fB\-L\fP, \fB\-\-dereference\fP
52 always follow symbolic links in SOURCE
54 \fB\-n\fP, \fB\-\-no\-clobber\fP
55 do not overwrite an existing file (overrides a previous \fB\-i\fP option)
57 \fB\-P\fP, \fB\-\-no\-dereference\fP
58 never follow symbolic links in SOURCE
61 same as \fB\-\-preserve\fP=\fImode\fP,ownership,timestamps
63 \fB\-\-preserve\fP[=\fIATTR_LIST\fP]
64 preserve the specified attributes (default: mode,ownership,timestamps), if
65 possible additional attributes: context, links, xattr, all
67 \fB\-\-no\-preserve\fP=\fIATTR_LIST\fP
68 don't preserve the specified attributes
71 use full source file name under DIRECTORY
73 \fB\-R\fP, \fB\-r\fP, \fB\-\-recursive\fP
74 copy directories recursively
76 \fB\-\-reflink\fP[=\fIWHEN\fP]
77 control clone/CoW copies. See below
79 \fB\-\-remove\-destination\fP
80 remove each existing destination file before attempting to open it (contrast
83 \fB\-\-sparse\fP=\fIWHEN\fP
84 control creation of sparse files. See below
86 \fB\-\-strip\-trailing\-slashes\fP
87 remove any trailing slashes from each SOURCE argument
89 \fB\-s\fP, \fB\-\-symbolic\-link\fP
90 make symbolic links instead of copying
92 \fB\-S\fP, \fB\-\-suffix\fP=\fISUFFIX\fP
93 override the usual backup suffix
95 \fB\-t\fP, \fB\-\-target\-directory\fP=\fIDIRECTORY\fP
96 copy all SOURCE arguments into DIRECTORY
98 \fB\-T\fP, \fB\-\-no\-target\-directory\fP
99 treat DEST as a normal file
101 \fB\-u\fP, \fB\-\-update\fP
102 copy only when the SOURCE file is newer than the destination file or when
103 the destination file is missing
105 \fB\-v\fP, \fB\-\-verbose\fP
106 explain what is being done
108 \fB\-x\fP, \fB\-\-one\-file\-system\fP
109 stay on this file system
117 By default, sparse SOURCE files are detected by a crude heuristic and the
118 corresponding DEST file is made sparse as well. That is the behavior
119 selected by \fB\-\-sparse\fP=\fIauto\fP. Specify \fB\-\-sparse\fP=\fIalways\fP to create a
120 sparse DEST file whenever the SOURCE file contains a long enough sequence of
121 zero bytes. Use \fB\-\-sparse\fP=\fInever\fP to inhibit creation of sparse files.
123 When \fB\-\-reflink\fP[=\fIalways\fP] is specified, perform a lightweight copy,
124 where the data blocks are copied only when modified. If this is not
125 possible the copy fails, or if \fB\-\-reflink\fP=\fIauto\fP is specified, fall back
128 The backup suffix is `~', unless set with \fB\-\-suffix\fP or
129 SIMPLE_BACKUP_SUFFIX. The version control method may be selected via the
130 \fB\-\-backup\fP option or through the VERSION_CONTROL environment variable.
134 never make backups (even if \fB\-\-backup\fP is given)
137 make numbered backups
140 numbered if numbered backups exist, simple otherwise
143 always make simple backups
145 As a special case, cp makes a backup of SOURCE when the force and backup
146 options are given and SOURCE and DEST are the same name for an existing,
149 Torbjorn Granlund, David MacKenzie, Jim Meyering が作成した。
151 cp のバグは bug\-coreutils@gnu.org に報告してください。
153 GNU coreutils のホームページは <http://www.gnu.org/software/coreutils/> です。
155 GNU ソフトウェアを使用するための一般的なヘルプ <http://www.gnu.org/gethelp/> にある。
157 cp の翻訳のバグは <http://translationproject.org/team/> に報告してください。
159 Copyright \(co 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL
160 version 3 or later <http://gnu.org/licenses/gpl.html>.
162 This is free software: you are free to change and redistribute it. There is
163 NO WARRANTY, to the extent permitted by law.
165 \fBcp\fP の完全なマニュアルは Texinfo マニュアルとして用意されている。
166 \fBinfo\fP と \fBcp\fP のプログラムがお使いの環境に適切にインストールされているならば、
169 \fBinfo coreutils \(aqcp invocation\(aq\fP
171 を実行すると、完全なマニュアルを読むことができるはずである。