TÊN
- Provided by: manpages-vi (Version: 4.31.0-1)
- Source: manpages-l10n
- Report a bug
cp [TÙY_CHỌN]… [-T]
NGUỒN ĐÍCH
cp [TÙY_CHỌN]… NGUỒN…
THƯ_MỤC
cp [TÙY_CHỌN]… -t THƯ_MỤC
NGUỒN…
Sao chép NGUỒN tới ĐÍCH hoặc nhiều NGUỒN tới THƯ_MỤC.
Tùy chọn dài yêu cầu đối số thì tùy chọn ngắn cũng vậy.
ATTR_LIST is a comma-separated list of attributes. Attributes are 'mode' for permissions (including any ACL and xattr permissions), 'ownership' for user and group, 'timestamps' for file timestamps, 'links' for hard links, 'context' for security context, 'xattr' for extended attributes, and 'all' for all attributes.
Mặc định là tập tin NGUỒN sparse được dò tìm bởi một tiên đoán thô sơ và tập tin ĐÍCH tương ứng cũng được sparse. Các hành xử này được lựa chọn bởi --sparse=auto. chỉ định --sparse=always để tạo một tập tin ĐÍCH sparse kể cả khi tập tin NGUỒN chứa một chuỗi byte số không đủ dài. Hãy dùng --sparse=never để ngăn chặn việc tạo các tập tin sparse.
UPDATE controls which existing files in the destination are replaced. 'all' is the default operation when an --update option is not specified, and results in all existing files in the destination being replaced. 'none' is like the --no-clobber option, in that no files in the destination are replaced, and skipped files do not induce a failure. 'none-fail' also ensures no files are replaced in the destination, but any skipped files are diagnosed and induce a failure. 'older' is the default operation when --update is specified, and results in files being replaced if they're older than the corresponding source file.
By default or with --reflink=auto, cp will try a lightweight copy, where the data blocks are copied only when modified, falling back to a standard copy if this is not possible. With --reflink[=always] cp will fail if CoW is not supported, while --reflink=never ensures a standard copy is performed.
Hậu tố sao lưu là “~”, trừ khi đặt với --suffix hoặc SIMPLE_BACKUP_SUFFIX. Phương pháp điều khiển phiên bản có thể chọn qua tùy chọn --backup hoặc qua biến môi trường VERSION_CONTROL. Có những giá trị sau:
Như một trường hợp đặc biệt, cp tạo bản sao lưu của NGUỒN khi đưa ra hai tùy chọn force (ép buộc) và backup (sao lưu) và NGUỒN và ĐÍCH cùng là một tên cho một tập tin thông thường đã tồn tại.
Viết bởi Torbjorn Granlund, David MacKenzie và Jim Meyering.
Thông báo lỗi cho:
<bug-coreutils@gnu.org>. Thông báo lỗi
dịch cho: <http://translationproject.org/team/vi.html>.
Trang chủ GNU coreutils:
<https://www.gnu.org/software/coreutils/>
Trợ giúp chung về sử dụng phần
mềm GNU: <https://www.gnu.org/gethelp/>
Report any translation bugs to
<https://translationproject.org/team/>
Tài liệu đầy đủ
có tại: <https://www.gnu.org/software/coreutils/cp>
hoặc sẵn có nội bộ thông qua: info
'(coreutils) cp invocation'
Packaged by Debian (9.10-1)
Copyright © 2026 Free Software Foundation, Inc.
Giấy phép GPL pb3+ : Giấy phép Công
cộng GNU phiên bản 3 hay sau
<https://gnu.org/licenses/gpl.html>.
Đây là phần mềm tự do: bạn
có quyền sửa đổi và phát
hành lại nó.
KHÔNG CÓ BẢO HÀNH GÌ CẢ, với
điều khiển được pháp
luật cho phép.
Bản dịch tiếng Việt của trang hướng dẫn này do
thực hiện.
Bản dịch này là Tài liệu Miễn phí; đọc Giấy phép Công cộng GNU Phiên bản 3 hoặc mới hơn để biết các điều khoản bản quyền. Chúng tôi cho rằng KHÔNG CÓ TRÁCH NHIỆM PHÁP LÝ.
Nếu bạn tìm thấy một số sai sót trong bản dịch của trang hướng dẫn này, vui lòng gửi thư đến TODO.