Delete Linux files and directories that are three days old

1149215 pts.
Tags:
Linux
Our log directory has grown way too big (it's over 70,000 files / directories). We need to go through and delete all the files / directories that are older than three days. We tried to use find * -mtime +3 -exec rm {} ; but we get the error that Argument List is too long. What can we do?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you do a web search, you will find many sites that can assist you with this. Here is one of them. http://stackoverflow.com/questions/14731133/how-to-delete-all-files-older-than-3-days-when-argument-list-too-long

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: