?? cp.1
字號:
.\" SCCSID: @(#)cp.1 8.1 9/11/90.TH cp 1.SH Namecp \- copy file data.SH Syntax.B cp[ \fB\-f\fR ] [ \fB\-i\fR ] [ \fB\-p\fR ] \fIfile1 file2\fR.PP.B cp[ \fB\-f\fR ] [ \fB\-i\fR ] [ \fB\-p\fR ] [ \fB\-r\fR ] \fIfile... directory\fR.PP.B cp[ \fB\-f\fR ] [ \fB\-i\fR ] [ \fB\-p\fR ] [ \fB\-r\fR ] \fIdirectory... directory\fR.SH Description.NXR "cp command".NXR "file" "copying".NXA "cp command" "dd command".NXA "cp command" "mv command"The.PN cpcommand copies.I file1onto.IR file2 .The mode and owner of .I file2are preserved if it alreadyexisted; the mode of .I file1is used otherwise. Note that the.PN cpcommand will not copy a file onto itself..PPIn the second form, one or more .I files are copied into the.I directory with their original file names..PPIn the third form, one or more source.I directoriesare copied into the destination.I directorywith their original file names..SH Options.IP \-f 5Forces existing destination pathnames to be removedbefore copying, without prompting for confirmation.The.B \-ioption is ignored if the.B \-foption is specified..IP \-i 5Prompts user with the name of filewhenever the copy will cause an old file to beoverwritten. A yes answer will cause .PN cpto continue. Any other answer will prevent itfrom overwriting the file..IP \-pPreserves (duplicates) in the copies the modificationtime, access time, file mode, user ID, and group ID as allowedby the permissions of the source files, ignoring the presentumask..IP \-rCopies directories. Entire directory trees, including their subtrees and the individual files they contain, are copied to the specified destination directory. The directory, its subtrees, and the individual files retain their original names. For example, to copy the directory .PN reports ,including all of its subtrees and files, into the directory .PN news, enter the following command:.EXcp \-r reports news.EE.SH See Alsocat(1), pr(1), mv(1)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -