Summary: Removing trash files

From: Andreas Höschler <ahoesch_at_smartsoft.de>
Date: Thu Dec 16 2004 - 16:26:31 EST
Dear managers,

thanks a lot for all the responses. The best solution for my problems 
seems to be

> find /home -type d -name .Trash -exec rm -rf {} \;

Thanks a lot!

Regards,

	Andreas


>> Dear managers,
>>
>> please excuse me for asking a probably trivial question, but I did not
>> get this figuered out so far. I have home directories in /home. Each
>> user has a dir .Trash in its home dir. I want to setup a cron job that
>> clears all .Trash dirs in all home dirs (rm -rf *)
>>
>> I have alread setup the following for core files.
>>
>> 0 3 * * 1-5 find / -name core 2>/dev/null | xargs rm -f  > /dev/null
>> 2>&1
>>
>> However the trash thing is more complicated since I am looking for 
>> dirs
>> not files. I tried stuff like
>>
>> find /home -name "*./Trash*"
>>
>> without much success.
>>
>> Thnaks!
>>
>> Regards,
>>
>>    Andreas
>> _______________________________________________
>> sunmanagers mailing list
>> sunmanagers@sunmanagers.org
>> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Dec 16 16:27:03 2004

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:41 EST