[CentOS] The directory that I am trying to clean up is huge

Les Mikesell lesmikesell at gmail.com
Mon Jan 25 14:10:13 UTC 2010


fred smith wrote:
> On Mon, Jan 25, 2010 at 03:14:54AM -0800, John Doe wrote:
>> From: Anas Alnaffar <a.alnaffar at tijaritelecom.com>
>>> I tried to run this command
>>> find -name "*.access*" -mtime +2 -exec rm {} \;
>>> and I have same error message
>> How many "*.access*" are there...?
>>
>> JD
> 
> if there are so many that you're finding the previously suggested
> techniques difficult to use, you can try the brute-force I sometimes
> use...

It actually shouldn't matter.  As long as the wildcards are quoted on the 
command line, you shouldn't get an error from too many files.  I suspect the 
command that was typed wasn't exactly what is shown above.

-- 
   Les Mikesell
    lesmikesell at gmail.com




More information about the CentOS mailing list