Files Removes Issue

Taking care of your Linux box.
refra
Naik
Posts: 69
Joined: Wed Dec 06, 2006 3:51 pm

Files Removes Issue

Postby refra » Fri Apr 22, 2011 11:47 am

AOA,

I want to delete large # of files from

/d01/oracle/PROD/inst/apps/PROD_ebs/logs/appl/conc/out

The Size of the path is:
613M /d01/oracle/PROD/inst/apps/PROD_ebs/logs/appl/conc/out

Total # of files is: 76301

when i delete the files under /out directory:

it gives me error:

"Argument list is too long"

what is the issue or How can i resolve it.

CyberBob
Cadet
Posts: 8
Joined: Wed Mar 12, 2008 11:44 am
Location: End of Road. . . .
Contact:

Postby CyberBob » Sat Apr 23, 2011 12:52 pm

As the total number of files is too high that is why you are facing this error msg. Try deleting files by minimizing the number of files in deletion batch i.e. try deleting files 500 to 1000 at a time.

Or if you are damn sure what you are going to do try this command to delete all files in your desired location

find -name '*' | xargs rm
Registered Linux User # 511059
http://imranbhullar.blogspot.com
Follow me on Twitter! http://twitter.com/imranbhullar

"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Sun Apr 24, 2011 7:33 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

refra
Naik
Posts: 69
Joined: Wed Dec 06, 2006 3:51 pm

Postby refra » Mon Apr 25, 2011 10:34 am


lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Mon Apr 25, 2011 4:18 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

refra
Naik
Posts: 69
Joined: Wed Dec 06, 2006 3:51 pm

Postby refra » Mon Apr 25, 2011 5:29 pm


lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Tue Apr 26, 2011 2:35 am

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest