名稱
- Provided by: manpages-zh (Version: 1.6.3.3-2)
- Report a bug
cp [選項]... [-T]
來源 目標
cp [選項]... 來源...
目錄
cp [選項]... -t 目錄
來源...
從指定的來源文件複製到目標處,或者將多個源文件複製到目標目錄中。
必選參數對長短選項同時適用。
默認情況下,程序會使用一種粗糙的啓發式算法探測源文件是否是稀疏的,若判定爲稀疏,則目標文件也會以稀疏形式創建。這個行爲可以通過 --sparse=auto 指定。若指定 --sparse=always,將在源文件包含足夠多內容爲零的字節序列時將其視作稀疏文件。使用 --sparse=never 以禁止創建稀疏文件。
當指定了 --reflink[=always] 時,進行輕量級複製,其中的數據塊僅在被修改時進行復制。如果這樣的複製失敗,或無法實行,或者指定了 --reflink=auto 時,回退到標準複製。
備份的後綴爲“~”,除非設置了 --suffix 或者 SIMPLE_BACKUP_SUFFIX。版本控制方式可以使用 --backup 選項或者 VERSION_CONTROL 環境變量進行指定。可用的值如下:
作爲一個特例,cp 將在同時給出 force 選項與 backup 選項,並且源文件和目標文件是同一個已存在普通文件的情況下製作備份副本。
由 Torbjorn Granlund、David MacKenzie 和 Jim Meyering 編寫。
GNU coreutils 的在線幫助:
<http://www.gnu.org/software/coreutils/>
請向 <http://translationproject.org/team/zh_CN.html>
報告 cp 的翻譯錯誤。
Copyright © 2017 Free Software Foundation, Inc. License
GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
完整文檔請見:
<http://www.gnu.org/software/coreutils/cp>
或者在本地使用: info
'(coreutils) cp invocation'
本頁面中文版由中文
man 手冊頁計劃提供。
中文 man
手冊頁計劃:https://github.com/man-pages-zh/manpages-zh