LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I delete a folder and everything in it? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-delete-a-folder-and-everything-in-it-316118/)

wuya 04-22-2005 01:14 PM

How do I delete a folder and everything in it?
 
How do I delete a folder and everything in it?How do I delete a folder and everything in it? Along with the command that asks me if I really wanted to delete it for sure.

Padma 04-22-2005 01:26 PM

"man rm"

harken 04-22-2005 01:26 PM

rm -rf /directory

Optimistic 04-22-2005 02:03 PM

Quote:

Originally posted by harken
rm -rf /directory
That is exactly right, of course, but be very careful with that command--especially if you use it as root. It is a good idea to rely on tab completion with that cause an accidental space in the directory tree will make you cry. For example:

rm -rf / home/YOU

Could be really bad (notice the space between the / and home)


All times are GMT -5. The time now is 09:24 AM.