⑧linux基础命令 rm

rm 删除 remove

绕过交互删除 -f
[root@rstx-53 test]# rm file 
rm: remove regular empty file ‘file’? n
[root@rstx-53 test]# fm -f file 
-bash: fm: command not found
[root@rstx-53 test]# rm -f file 
[root@rstx-53 test]# \rm file 
递归删除目录文件 -rf
[root@rstx-53 test]# mkdir test/test/test -p
[root@rstx-53 test]# rm -f test/
rm: cannot remove ‘test/’: Is a directory
[root@rstx-53 test]# rm -rf test/
[root@rstx-53 test]# 
posted @ 2021-02-26 14:09  老夫聊发少年狂88  阅读(46)  评论(0编辑  收藏  举报