RM(1) Cac cau l>nh RM(1)
TEN
rm - remove files or directories
TOM T>T
rm [TUY_CH>N]> [T>P_TIN]>
MO T>
This manual page documents the GNU version of rm. rm removes each
specified file. By default, it does not remove directories.
If the -I or --interactive=once option is given, and there are more
than three files or the -r, -R, or --recursive are given, then rm
prompts the user for whether to proceed with the entire operation. If
the response is not affirmative, the entire command is aborted.
Otherwise, if a file is unwritable, standard input is a terminal, and
the -f or --force option is not given, or the -i or
--interactive=always option is given, rm prompts the user for whether
to remove the file. If the response is not affirmative, the file is
skipped.
TUY CH>N
Xoa (h>y lien k>t) cac T>P_TIN.
-f, --force
b> qua t>p tin khong t>n t>i, khong bao gi> h>i
tru>c
-i h>i tru>c m>i l>n xoa
-I h>i m>i m>t l>n xoa nhi>u hon 3 t>p tin, ho>c: khi
di chuy>n d> quy. It phi>n toai hon -i trong khi v>n dua
l>i kh> nang b>o v> tranh kh>i ph>n l>n l>i.
--interactive[=KHI]
prompt according to WHEN: never, once (-I), or always (-i);
without WHEN, prompt always
--one-file-system
khi xoa d> quy m>t phan c>p, nh>y qua thu m>c n>m
tren h> th>ng t>p tin khac v>i h> th>ng co d>i
s> dong l>nh tu>ng >ng.
--no-preserve-root
khong coi "/" la d>c bi>t
--preserve-root[=all]
khong xoa "/" (m>c d>nh); v>i, t> ch>i b>t k>
m>t d>i s> dong l>nh nao tren m>t thi>t b> ngan
cach t> cha m> no
-r, -R, --recursive
xoa d> quy cac thu m>c va n>i dung c>a chung
-d, --dir
xoa b> thu m>c r>ng
-v, --verbose
cho bi>t c> th> nh>ng gi da th>c hi>n
--help hi>n th> tr> giup nay r>i thoat
--version
dua ra thong tin phien b>n r>i thoat
M>c d>nh, "rm" khong xoa thu m>c. Hay dung tuy ch>n --recursive
(-r ho>c -R) d> xoa t>ng thu m>c da li>t ke, cung v>i n>i
dung c>a chung.
Any attempt to remove a file whose last file name component is '.' or
'..' is rejected with a diagnostic.
D> xoa m>t t>p tin co ten b>t d>u v>i m>t "-", vi d>
"-foo", s> d>ng m>t trong cac cau l>nh sau:
rm -- -foo
rm ./-foo
If you use rm to remove a file, it might be possible to recover some of
its contents, given sufficient expertise and/or time. For greater
assurance that the contents are unrecoverable, consider using shred(1).
TAC GI>
Vi>t b>i Paul Rubin, David MacKenzie, Richard M. Stallman 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) 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
unlink(1), unlink(2), chattr(1), shred(1)
Tai li>u d>y d> co t>i:
ho>c s>n co n>i b> thong qua: info '(coreutils) rm 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 RM(1)