Web Hosting Talk







View Full Version : Remove Directories + files


Fremont Servers
07-28-2001, 11:48 PM
For Linux, this is the command to remove a directory and all files and subdirectories in that direct.

rm -r test

( where 'test' is the directory name)

How do I remove a directory and all its files and directory without it prompting me?

I have to "y" on all.
Is there a faster way?

remarkable
07-28-2001, 11:51 PM
`man rm`

rm -rf test

ryu
07-29-2001, 12:42 AM
er, do you mean this is a recurring problem? if so then could it be that you have "alias rm='rm -i'" set in your .bashrc or whatever shell you're using... it's a good safety catch to leave on though...

Fremont Servers
07-29-2001, 02:03 PM
I was looking for the below command. Thanks!

rm -rf <file>