Piv txwv kev siv ntawm Linux Command Command rm

Ib qho Kev Kawm Tshaj Tawm

Cov lus hais "rm" siv rau kev xa cov ntaub ntawv los sis directory (nplaub tshev). Cov lus txib npe "rm" yog muab los ntawm "tshem tawm".

Tshem cov ntaub ntawv "accounts.txt" hauv cov npe tam sim no koj yuav ntaus ntawv

RM accounts.txt rm -r rooj plaub

Txhawm rau rho tawm cov ntaub ntawv uas tsis nyob rau hauv phau ntawv qhia tam sim no koj tuaj yeem qhia meej txog txoj kev. Piv txwv,

rm / tsev / jdoe / cases / info

Koj xaiv tau rho tawm ib cov npe ntawm cov ntaub ntawv uas siv cov cim tsiaj ntawv "*". Piv txwv,

rm * .txt

Xav ob zaug ua ntej siv "rm". Lub kaw lus yuav tshem tawm cov ntaub ntawv teev cov ntaub ntawv tsis tas muab sij hawm rau koj. Thiab tsis muaj "khib nyiab tuaj yeem" yog koj tuaj yeem mus nrhiav cov khoom muab pov tseg.