📄 cp.1
字号:
.TH CP 1.SH NAMEcp, cpdir \- file copy.SH SYNOPSIS\fBcp [\fB\-pifsmrRvx\fR] \fIfile1\fR \fIfile2\fR\fR.br\fBcp [\fB\-pifsrRvx\fR] \fIfile\fR ... \fIdirectory\fR\fR.br\fBcpdir [\fB\-ifvx\fR] \fIfile1\fR \fIfile2\fR\fR.br.de FL.TP\\fB\\$1\\fR\\$2...de EX.TP 20\\fB\\$1\\fR# \\$2...SH OPTIONS.FL "\-p" "Preserve full mode, uid, gid and times".FL "\-i" "Ask before removing existing file".FL "\-f" "Forced remove existing file".FL "\-s" "Make similar, copy some attributes".FL "\-m" "Merge trees, disable the into-a-directory trick".FL "\-r" "Copy directory trees with link structure, etc. intact".FL "\-R" "Copy directory trees and treat special files as ordinary".FL "\-v" "Display what cp is doing".FL "\-x" "Do not cross device boundaries".SH EXAMPLES.EX "cp oldfile newfile" "Copy \fIoldfile\fR to \fInewfile\fR".EX "cp -R dir1 dir2" "Copy a directory tree".SH DESCRIPTION.PP.I Cpcopies one file to another, or copies one or more files to a directory.Special files are normally opened and read, unless \fB\-r\fP is used.\fB\-r\fP also copies the link structure, something \fB\-R\fP doesn'tcare about.The \fB\-s\fP option differs from \fB\-p\fP that it only copies thetimes if the target file already exists. A normal copy only copies themode of the file, with the file creation mask applied. Set-uid bits arecleared if the owner cannot be set. (The \fB\-s\fP flag does notpatronize you by clearing bits. Alas \fB\-s\fP and \fB\-r\fP arenonstandard.).PP.I Cpdiris a convenient synonym for \fBcp \-psmr\fP to make a precise copy ofa directory tree..SH "SEE ALSO".BR cat (1),.BR mkdir (1),.BR rmdir (1),.BR ln (1),.BR rm (1).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -