Linux学习
rm -R directory
递归删除子目录
[root@VM-12-13-centos ~]# ls /home/
jack_home lighthouse sunny tom
[root@VM-12-13-centos ~]# rm -f /home/jack_home/
rm: cannot remove ‘/home/jack_home/’: Is a directory
[root@VM-12-13-centos ~]# rm -R /home/jack_home/
rm: descend into directory ‘/home/jack_home/’? y
rm: remove regular file ‘/home/jack_home/.bashrc’? y
rm: remove regular file ‘/home/jack_home/.bash_logout’? y
rm: remove regular file ‘/home/jack_home/.bash_profile’? y
rm: remove directory ‘/home/jack_home/’? y
[root@VM-12-13-centos ~]# ls /home/
lighthouse mike_home sunny tom
Linux学习:递归删除操作实战
本文讲述了在Linux环境下使用rm命令删除目录时的注意事项,特别是如何通过`rm -R`递归删除子目录的过程,以及遇到错误时的解决方法。
4798

被折叠的 条评论
为什么被折叠?



