TRUNCATE(1) Cac cau l>nh TRUNCATE(1)
TEN
truncate - shrink or extend the size of a file to the specified size
TOM T>T
truncate [TUY_CH>N]> T>P_TIN>
MO T>
Thu nh> ho>c m> r>ng kich c> c>a m>i T>P_TIN thanh kich
c> dua ra.
D>i s> T>P_TIN n>u chua co thi du>c t>o m>i.
If a FILE is larger than the specified size, the extra data is lost.
If a FILE is shorter, it is extended and the sparse extended part
(hole) reads as zero bytes.
Tuy ch>n dai yeu c>u d>i s> thi tuy ch>n ng>n cung v>y.
-c, --no-create
khong t>o t>p tin nao
-o, --io-blocks
tinh kich C> la m>t s> kh>i VR thay cho cac byte
-r, --reference=T>P-TIN-TC
d>a tren c> c>a t>p tin dung d> tham chi>u
-s, --size=KICH-C>
d>t ho>c di>u ch>nh c> t>p tin theo C> nay
--help hi>n th> tr> giup nay r>i thoat
--version
dua ra thong tin phien b>n r>i thoat
The SIZE argument is an integer and optional unit (example: 10K is
10*1024). Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024) or KB,MB,...
(powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and
so on.
Kich C> cung co th> theo sau m>t c>a nh>ng ky t> s>a
d>i nay: "+" tang theo, "-" gi>m theo, "<" nhi>u nh>t, ">" it
nh>t, "/" lam tron xu>ng b>i s> cho, "%" lam tron len b>i
s> cho
TAC GI>
Vi>t b>i Padraig Brady.
THONG BAO L>I
Tr> giup tr>c tuy>n GNU coreutils:
Report any translation bugs to
B>N QUY>N
Copyright (C) 2024 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
dd(1), truncate(2), ftruncate(2)
Tai li>u d>y d> co t>i:
ho>c s>n co n>i b> thong qua: info '(coreutils) truncate
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.5 Thang 8 nam 2024 TRUNCATE(1)