如何使用@rm命令彻底删除指定文件和文件夹?
- 内容介绍
- 文章标签
- 相关推荐
本文共计206个文字,预计阅读时间需要1分钟。
删除文件及文件夹 -f 参数:强制删除,不进行交互式确认 [root@string ~]
删除文件及文件夹
- -f : 免交互删除
[root@string ~]# ls
1txt 2txt 4txt 6txt 8txt abc one test
1.txt 3txt 5txt 7txt 9txt bash.sh proxy.conf 系统优化.md
[root@string ~]# rm -f 1txt
[root@string ~]# ls
1.txt 3txt 5txt 7txt 9txt bash.sh proxy.conf 系统优化.md
2txt 4txt 6txt 8txt abc one test
- -i : 增加一个删除前的提示
rm: remove regular file
- -r : 递归删除
[root@string ~]# rm -r abc/
- 删库跑路
本文共计206个文字,预计阅读时间需要1分钟。
删除文件及文件夹 -f 参数:强制删除,不进行交互式确认 [root@string ~]
删除文件及文件夹
- -f : 免交互删除
[root@string ~]# ls
1txt 2txt 4txt 6txt 8txt abc one test
1.txt 3txt 5txt 7txt 9txt bash.sh proxy.conf 系统优化.md
[root@string ~]# rm -f 1txt
[root@string ~]# ls
1.txt 3txt 5txt 7txt 9txt bash.sh proxy.conf 系统优化.md
2txt 4txt 6txt 8txt abc one test
- -i : 增加一个删除前的提示
rm: remove regular file
- -r : 递归删除
[root@string ~]# rm -r abc/
- 删库跑路

