[ilugd] Fwd: Delete thousands of folders and files

2008-04-07 Thread Tanveer Singh
On Mon, Apr 7, 2008 at 2:21 PM, Anupam Jain [EMAIL PROTECTED] wrote: On Mon, Apr 7, 2008 at 1:57 PM, Tanveer Singh [EMAIL PROTECTED] wrote: I have a directory called somedir Inside this directory there are thousands of subdirectories(20,000+) and even more number of small

Re: [ilugd] Fwd: Delete thousands of folders and files

2008-04-07 Thread Anupam Jain
On Mon, Apr 7, 2008 at 2:27 PM, Tanveer Singh [EMAIL PROTECTED] wrote: On Mon, Apr 7, 2008 at 2:21 PM, Anupam Jain [EMAIL PROTECTED] wrote: On Mon, Apr 7, 2008 at 1:57 PM, Tanveer Singh [EMAIL PROTECTED] wrote: I have a directory called somedir Inside this directory there

Re: [ilugd] Fwd: Delete thousands of folders and files

2008-04-07 Thread justintmoore22
If you pipe your find output to xargs it will run a lot faster : find somedir ¦ xargs rm -rf should make quick work of the files. Justin On Mon, 7 Apr 2008 4:57 am, Tanveer Singh wrote: On Mon, Apr 7, 2008 at 2:21 PM, Anupam Jain [EMAIL PROTECTED] wrote: On Mon, Apr 7, 2008 at 1:57 PM,

Re: [ilugd] Fwd: Delete thousands of folders and files

2008-04-07 Thread Karanbir Singh
Tanveer Singh wrote: Currently I do this mv somedir somedir.old find somedir.old -name * -exec rm -rf {} \; I was hoping for some quick delete kind of stuff. What filesystem is this on ? if its ext3 you can change your drive cache policy, disable index's, disable time updates etc (