CP(1) Cac cau l>nh CP(1)
TEN
cp - copy files and directories
TOM T>T
cp [TUY_CH>N]> [-T] NGU>N DICH
cp [TUY_CH>N]> NGU>N> THU_M>C
cp [TUY_CH>N]> -t THU_M>C NGU>N>
MO T>
Sao chep NGU>N t>i DICH ho>c nhi>u NGU>N t>i THU_M>C.
Tuy ch>n dai yeu c>u d>i s> thi tuy ch>n ng>n cung v>y.
-a, --archive
gi>ng nhu -dR --preserve=all
--attributes-only
don't copy the file data, just the attributes
--backup[=DI>UKHI>N]
t>o b>n sao luu cho m>i t>p tin dich da t>n t>i
-b gi>ng --backup nhung khong ch>p nh>n d>i s>
--copy-contents
sao chep n>i dung c>a t>p tin d>c bi>t khi d> quy
-d gi>ng nhu --no-dereference --preserve=links
--debug
explain how a file is copied. Implies -v
-f, --force
n>u khong m> du>c t>p tin dich thi xoa no va th> l>i
(tuy ch>n nay b> b> qua khi tuy ch>n -n cung d>ng
th>i du>c dung)
-i, --interactive
h>i l>i tru>c khi ghi de (ghi de len tuy ch>n -n d>t
tru>c no)
-H di theo cac lien k>t m>m c>a dong l>nh trong NGU>N
-l, --link
lien k>t t>p tin thay vao sao chep
-L, --dereference
luon luon theo lien k>t m>m trong NGU>N
-n, --no-clobber
do not overwrite an existing file (overrides a -u or previous -i
option). See also --update
-P, --no-dereference
khong bao gi> nen theo lien k>t m>m trong NGU>N
-p gi>ng nhu --preserve=mode,ownership,timestamps
--preserve[=DS_T.TINH]
preserve the specified attributes
--no-preserve=DANH_SACH_THU>C_TINH
khong gi> cac thu>c tinh ch> ra
--parents
dung ten t>p tin ngu>n d>y d> du>i THU_M>C
-R, -r, --recursive
sao chep d> quy cac thu m>c
--reflink[=KHI_NAO]
di>u khi>n vi>c sao chep clone/CoW. Xem du>i.
--remove-destination
g> b> m>i t>p tin dich d>n da co tru>c khi th>
m> no (tuong ph>n v>i --force)
--sparse=KHI_NAO
di>u khi>n vi>c t>o t>p tin sparse. Xem du>i.
--strip-trailing-slashes
g> b> m>i d>u g>ch ngu>c di theo kh>i m>i d>i
s> NGU>N
-s, --symbolic-link
t>o lien k>t m>m thay cho vi>c sao chep
-S, --suffix=H>U_T>
thay cho h>u t> thu>ng dung d> sao luu
-t, --target-directory=THU_M>C
sao chep m>i d>i s> NGU>N vao THU_M>C
-T, --no-target-directory
coi DICH la m>t t>p tin thong thu>ng
--update[=UPDATE]
control which existing files are updated;
UPDATE={all,none,older(default)}. See below
-u equivalent to --update[=older]
-v, --verbose
cho bi>t c> th> nh>ng gi da th>c hi>n
-x, --one-file-system
ch> th>c hi>n tren h> th>ng t>p tin nay
-Z d>t ng> c>nh an ninh SELinux c>a cac t>p tin dich
thanh ki>u m>c d>nh
--context[=NG>_C>NH]
gi>ng v>i -Z, ho>c n>u NG>_C>NH du>c ch> d>nh
thi d>t ng> c>nh an ninh SELinux hay SMACK thanh
NG>_C>NH
--help hi>n th> tr> giup nay r>i thoat
--version
dua ra thong tin phien b>n r>i thoat
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 d>nh la t>p tin NGU>N sparse du>c do tim b>i m>t tien
doan tho so va t>p tin DICH tuong >ng cung du>c sparse. Cac hanh
x> nay du>c l>a ch>n b>i --sparse=auto. ch> d>nh
--sparse=always d> t>o m>t t>p tin DICH sparse k> c> khi
t>p tin NGU>N ch>a m>t chu>i byte s> khong d> dai. Hay
dung --sparse=never d> ngan ch>n vi>c t>o cac 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 similar to the --no-clobber option, in that no
files in the destination are replaced, but also skipped files do not
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.
Khi --reflink[=always] du>c ch> d>nh, th>c hi>n m>t sao
chep nh> can, noi ma cac kh>i d> li>u ch> du>c sao chep khi
da b> s>a d>i. N>u vi>c nay la khong th> vi>c sao chep
l>i, ho>c n>u --reflink=auto du>c dua ra, khi l>i thi quay
l>i sao chep d>ng tieu chu>n. Dung --reflink=never d> d>m
b>o r>ng sao chep d>ng tieu chu>n du>c th>c thi.
H>u t> sao luu la "~", tr> khi d>t v>i --suffix ho>c
SIMPLE_BACKUP_SUFFIX. Phuong phap di>u khi>n phien b>n co th>
ch>n qua tuy ch>n --backup ho>c qua bi>n moi tru>ng
VERSION_CONTROL. Co nh>ng gia tr> sau:
none, off
khong bao gi> t>o b>n sao luu (du dua ra --backup)
numbered, t
danh s> th> t>
existing, nil
danh s> th> t> n>u co kho luu tru>c do, khong thi dung
d>ng don gi>n
simple, never
luon luon t>o b>n sao luu d>ng don gi>n
Nhu m>t tru>ng h>p d>c bi>t, cp t>o b>n sao luu c>a
NGU>N khi dua ra hai tuy ch>n force (ep bu>c) va backup (sao luu)
va NGU>N va DICH cung la m>t ten cho m>t t>p tin thong thu>ng
da t>n t>i.
TAC GI>
Vi>t b>i Torbjorn Granlund, David MacKenzie va Jim Meyering.
THONG BAO L>I
Tr> giup tr>c tuy>n GNU coreutils:
Report any translation bugs to
B>N QUY>N
Copyright (C) 2023 Free Software Foundation, Inc. Gi>y phep GPL pb3+
: Gi>y phep Cong c>ng GNU phien b>n 3 hay sau
.
Day la ph>n m>m t> do: b>n co quy>n s>a d>i va phat hanh
l>i no. KHONG CO B>O HANH GI C>, v>i di>u khi>n du>c phap
lu>t cho phep.
XEM THEM
install(1)
Tai li>u d>y d> co t>i:
ho>c s>n co n>i b> thong qua: info '(coreutils) cp invocation'
D>CH
B>n d>ch ti>ng Vi>t c>a trang hu>ng d>n nay do
th>c hi>n.
B>n d>ch nay la Tai li>u Mi>n phi; d>c Gi>y phep Cong
c>ng GNU Phien b>n 3
ho>c m>i hon d> bi>t cac di>u kho>n b>n quy>n. Chung
toi cho r>ng KHONG CO TRACH NHI>M PHAP LY.
N>u b>n tim th>y m>t s> sai sot trong b>n d>ch c>a
trang hu>ng d>n nay, vui long g>i thu d>n TODO <>.
GNU coreutils 9.4 Thang 1 nam 2024 CP(1)