當前位置:生活全書館 >

IT科技

> 有哪些命令是屬於Linux刪除的

有哪些命令是屬於Linux刪除的

linux刪除命令

linux刪除命令一共有以下幾種:

1、常規刪除a.txt檔案:[root]# rm a.txt;

2、強行刪除file.log檔案:[root]# rm -f file.log;

3、刪除dirname目錄下的所有東西:[root]# rm -R dir dirname;

4、刪除以 -f 開頭的檔案:

[root]# touch ./-f

[root]# ls ./-f

./-f

[root]# rm ./-f

或者使用:

     [root]# touch -- -f

[root]# ls -- -f

-f

[root]# rm -- -f  

有哪些命令是屬於Linux刪除的

標籤: linux 命令
  • 文章版權屬於文章作者所有,轉載請註明 https://shqsg.com/dianzi/39owvo.html