⑧linux基础命令 rm
时间:2021-02-26 14:27:59
收藏:0
阅读:30
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]#
原文:https://www.cnblogs.com/yangtao416/p/14452049.html
评论(0)