Clean Temp files
How can I set temp files to be removed at boot Fedora 12
find . -type f -mtime +10` -exec rm {} \;
Above command remove only 10day old file you give try out.
I do not recommend it, but you can put
rm -rf /tmp/*
to your
/etc/rc.d/rc.local
Yeah its not recomanded and maybe you should use tmpwatch to do it (http://linux.about.com/library/cmd/blcmdl8_tmpwatch.htm) and delete only oldies :-)
But first question is : why do you want to remove all the temporary files ? Just to save space (Did you tried to look at cache files too ) ?
Ex : yum store his cache at /var/cache/yum and this cache can be sometime huge ...
Instead of deleting temp files, if you have enough RAM you can put the whole directory in the memory. It's much faster and there is no need to delete anything as they go away any time you reboot ;)
Just add the following line in your /etc/fstab:
tmpfs /tmp tmpfs defaults,noatime,mode=1777,size=1000M 0 0
Asked: 2011-11-11 02:10:28 -0600
Seen: 7,932 times
Last updated: Nov 11 '11
uninstall fedora 22 from windows 8.1
How do I get dolphin to search/find files on a smb folder? [closed]
Unable to (completely) remove Telegram Desktop via Software
my fedora dont open windows partin
How to remove kde without removing gnome and cinnamon, fedora 25?
Missing Files display upon search
Fedora doesn't want to recognize a android phone! What to do?