A few days ago Codejacked wrote an article talking about Delete your TEMP files on shutdown for Windows. As much as I loved the article, I have recently switched over to Ubuntu. Like all Operating Systems, GNU Linux has temporary files also. Here’s how to delete them on shutdown.
sudo cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup
gksudo gedit /etc/init.d/sysklogd
... stop) log_begin_msg "Stopping system log daemon..." start-stop-daemon --stop --quiet --oknodo --exec $binpath --pidfile $pidfile log_end_msg $? ...
rm -fr /tmp/* /tmp/.??*
[...] If you’re using linux, check out this: http://tech.karbassi.com/2007/01/14/remove-temp-folder-con... [...]