LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remove directory completely (https://www.linuxquestions.org/questions/linux-newbie-8/remove-directory-completely-533927/)

ramesh_manu 03-02-2007 10:21 AM

remove directory completely
 
how can i remove the directory completely (including sub directories and files) in shell prompt ?

theYinYeti 03-02-2007 10:24 AM

rm -rf (BE EXTRA CAREFULL!)

7stud 03-02-2007 01:15 PM

Quote:

Originally Posted by theYinYeti
rm -rf (BE EXTRA CAREFULL!)

Why not:

rm -ri filename

??

theYinYeti 03-05-2007 11:27 AM

Although in theory you're right, in practice, the -r switch usually implies quite a lot of files to delete, and you often don't want to answer 'y' to each of those files. But I repeat: you're right :)

Yves.


All times are GMT -5. The time now is 09:27 PM.