mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 16:06:00 +02:00
cp: add Chinese translation (#5877)
This commit is contained in:
parent
6a64d2aad1
commit
51bf3c73bb
1 changed files with 28 additions and 0 deletions
28
pages.zh/common/cp.md
Normal file
28
pages.zh/common/cp.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# cp
|
||||
|
||||
> 复制文件和文件夹。
|
||||
> 更多信息:<https://www.gnu.org/software/coreutils/cp>.
|
||||
|
||||
- 将文件复制到另一个位置:
|
||||
|
||||
`cp {{某路径/源文件.ext}} {{某路径/目标文件.ext}}`
|
||||
|
||||
- 将文件复制到另一个文件夹,并保留原来的文件名:
|
||||
|
||||
`cp {{某路径/源文件.ext}} {{某路径/目标文件夹}}`
|
||||
|
||||
- 以递归方式将文件夹内的内容复制到另一个位置(如果目标文件夹存在,则将此文件夹复制到目标文件夹中):
|
||||
|
||||
`cp -R {{某路径/源文件夹}} {{某路径/目标文件夹}}`
|
||||
|
||||
- 以详细模式递归复制目录(在复制文件时显示文件信息):
|
||||
|
||||
`cp -vR {{某路径/源文件夹}} {{某路径/目标文件夹}}`
|
||||
|
||||
- 以交互方式将文本文件复制到另一个位置(覆盖之前会提示用户):
|
||||
|
||||
`cp -i {{*.txt}} {{某路径/目标文件夹}}`
|
||||
|
||||
- 复制之前,请遵循符号链接:
|
||||
|
||||
`cp -L {{符号文件}} {{某路径/目标文件夹}}`
|
Loading…
Add table
Reference in a new issue