Thursday, March 13, 2014

REMOVE A DIRECTORY

remove a directory using command ' rm -rf '

ls to check

[root@localhost ~]# rm -rf d2

[root@localhost ~]# ls

anaconda-ks.cfg  d5         Downloads           linux   Pictures  s3  Templates
c1               Desktop    install.log         linux1  Public    s4  Videos        d3
d4               Documents  install.log.syslog  Music   s2        s5

[root@localhost ~]# rm -rf  d3
[root@localhost ~]# ls
anaconda-ks.cfg  d5         Downloads           linux   Pictures  s3  Templates
c1               Desktop    install.log         linux1  Public    s4  Videos
d4               Documents  install.log.syslog  Music   s2        s5

No comments:

Post a Comment