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