The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-01-2007
plcyber plcyber is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 2
Question Is there anyway to delete a directory that has more than 200mil files?

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