![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| delete all but one files in a directory | finalight | Shell Programming and Scripting | 10 | 05-21-2008 03:51 AM |
| How to Delete Multi Directory and Files | cthinh | UNIX for Dummies Questions & Answers | 5 | 05-08-2008 04:03 AM |
| Delete Some Old files from Particular Directory | siva80_cit | Shell Programming and Scripting | 2 | 12-11-2006 06:47 AM |
| delete files in specific directory | legato | Shell Programming and Scripting | 2 | 03-29-2006 09:46 PM |
| CRON. How to delete files within a directory | southoxon | UNIX for Dummies Questions & Answers | 1 | 08-24-2003 10:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have a directory in my server which has grown incredibly huge with high
volume of files. The files were output files generated by the print server. I'm having problem with removing the files or even the entire directory, the CPU rate will hit peak whenever I execute the 'rm' command to remove the files. I also can't do a 'du -sk' of the dir bcos it just hang. Below is the status of the file when a do a 'ls' from the parent directory : drwxr-sr-x 2 appltest oradba 204728832 May 30 15:10 log_to_removed Can anyone help to advise what is the best way to remove or scrape this directory which is taking up space in my server? Thks, Patrina |
|
||||
|
It's not supposed to print anything on the screen, it's spending all it's time doing it's job.
![]() use "top" or "ps" to look at process status You should see "find" and "xargs" working like mad and "rm" with it's pid counting up as each "rm" is run with a group of 20 files. Also if you do an "ls -ld" of the parent directory you should see the inode reference count dropping as each file is deleted. |