Penguin
Annotated edit history of cp(1) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 CP
2 !!!CP
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 AUTHOR
7 REPORTING BUGS
8 COPYRIGHT
9 SEE ALSO
10 ----
11 !!NAME
12
13
14 cp - copy files and directories
15 !!SYNOPSIS
16
17
18 __cp__ [[''OPTION'']... ''SOURCE DEST''__
19 cp__ [[''OPTION'']... ''SOURCE''...
20 ''DIRECTORY''__
21 cp__ [[''OPTION'']... ''--target-directory=DIRECTORY
22 SOURCE''...
23 !!DESCRIPTION
24
25
26 Copy SOURCE to DEST, or multiple SOURCE(s) to
27 DIRECTORY.
28
29
30 __-a__, __--archive__
31
32
33 same as __-dpR__
34
35
36 __--backup__[[=''CONTROL'']
37
38
39 make a backup of each existing destination file
40
41
42 __-b__
43
44
45 like __--backup__ but does not accept an
46 argument
47
48
49 __-d__, __--no-dereference__
50
51
52 never follow symbolic links
53
54
55 __-f__, __--force__
56
57
58 if an existing destination file cannot be opened, remove it
59 and try again
60
61
62 __-i__, __--interactive__
63
64
65 prompt before overwrite
66
67
68 __-H__
69
70
71 follow command-line symbolic links
72
73
74 __-l__, __--link__
75
76
77 link files instead of copying
78
79
80 __-L__, __--dereference__
81
82
83 always follow symbolic links
84
85
86 __-p__, __--preserve__
87
88
89 preserve file attributes if possible
90
91
92 __--parents__
93
94
95 append source path to DIRECTORY
96
97
98 __-P__
99
100
101 same as `--parents' for now; soon to change to
102 `--no-dereference' to conform to POSIX
103
104
105 __-r__
106
107
108 copy recursively, non-directories as files WARNING: use
109 __-R__ instead when you might copy special files like
110 FIFOs or /dev/zero
111
112
113 __--remove-destination__
114
115
116 remove each existing destination file before attempting to
117 open it (contrast with __--force__)
118
119
120 __--sparse__=''WHEN''
121
122
123 control creation of sparse files
124
125
126 __-R__, __--recursive__
127
128
129 copy directories recursively
130
131
132 __--strip-trailing-slashes__ remove any trailing slashes
133 from each SOURCE
134
135
136 argument
137
138
139 __-s__, __--symbolic-link__
140
141
142 make symbolic links instead of copying
143
144
145 __-S__, __--suffix__=''SUFFIX''
146
147
148 override the usual backup suffix
149
150
151 __--target-directory__=''DIRECTORY''
152
153
154 move all SOURCE arguments into DIRECTORY
155
156
157 __-u__, __--update__
158
159
160 copy only when the SOURCE file is newer than the destination
161 file or when the destination file is missing
162
163
164 __-v__, __--verbose__
165
166
167 explain what is being done
168
169
170 __-x__, __--one-file-system__
171
172
173 stay on this file system
174
175
176 __--help__
177
178
179 display this help and exit
180
181
182 __--version__
183
184
185 output version information and exit
186
187
188 By default, sparse SOURCE files are detected by a crude
189 heuristic and the corresponding DEST file is made sparse as
190 well. That is the behavior selected by
191 __--sparse__=''auto''. Specify
192 __--sparse__=''always'' to create a sparse DEST file
193 whenever the SOURCE file contains a long enough sequence of
194 zero bytes. Use __--sparse__=''never'' to inhibit
195 creation of sparse files.
196
197
198 The backup suffix is `~', unless set with __--suffix__ or
199 SIMPLE_BACKUP_SUFFIX. The version control method may be
200 selected via the __--backup__ option or through the
201 VERSION_CONTROL environment variable. Here are the
202 values:
203
204
205 none, off
206
207
208 never make backups (even if __--backup__ is
209 given)
210
211
212 numbered, t
213
214
215 make numbered backups
216
217
218 existing, nil
219
220
221 numbered if numbered backups exist, simple
222 otherwise
223
224
225 simple, never
226
227
228 always make simple backups
229
230
231 As a special case, cp makes a backup of SOURCE when the
232 force and backup options are given and SOURCE and DEST are
233 the same name for an existing, regular file.
234 !!AUTHOR
235
236
2 perry 237 Written by Torbjorn Granlund, David !MacKenzie, and Jim
1 perry 238 Meyering.
239 !!REPORTING BUGS
240
241
242 Report bugs to
243 !!COPYRIGHT
244
245
246 Copyright 2001 Free Software Foundation, Inc.
247 This is free software; see the source for copying
248 conditions. There is NO warranty; not even for
249 MERCHANTABILITY or FITNESS FOR A PARTICULAR
250 PURPOSE.
251 !!SEE ALSO
252
253
254 The full documentation for __cp__ is maintained as a
255 Texinfo manual. If the __info__ and __cp__ programs
256 are properly installed at your site, the
257 command
258
259
260 __info cp__
261
262
263 should give you access to the complete manual.
264 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.