有哪些命令是关于linux的删除命令的
- IT科技
- 关注:6.76K次
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
- 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/qqxkm4.html