sudo find /tmp -mtime +1 -exec rm -f {} \;
And second, why can't I see the "New Thread" orange button in the "Development and Programming" subforum? Is it limited now?
sudo find /tmp -mtime +1 -exec rm -f {} \;
And second, why can't I see the "New Thread" orange button in the "Development and Programming" subforum? Is it limited now?
Registered Linux User #479009
Friend-->Linux; 6 and counting...
Why would you want to delete anything in /tmp ?
/tmp gets deleted every time you boot your machine.
Cheesemill
tmp is filling rapidly, and I don't reboot my machine but about once a week. I have a 10GB home partition, and tmp gets up to 3GB pretty quickly given my activity; I have started having issues with no space on /home. So, I want to run a cleaner script, and this is one of the lines.
And I still don't know why I can't post this in Development and Programming; anyone know?
Registered Linux User #479009
Friend-->Linux; 6 and counting...
is there an error message? if there are A LOT of files, you may be overflowing the argument list - in which case try xargs
http://ubuntuforums.org/showpost.php...35&postcount=4
I agree with the others, you should find the source of the problem. i believe the reason why this is not working probably because the exec rm is not being executed with elevated permissions. You could try this rather scary incantationCode:sudo find /tmp -mtime +1 -exec sudo rm -f {} \;
-BAB1
Bookmarks