In general, how can we clean /tmp for freeing up the space taken bynon-needed files?Note that I once made a mistake by deleting everything under /tmp, and then after rebooting, my Ubuntu was broken. I guess it broke the OS by deleting some system or programs' temporary files created in /tmp and still in use. So now I ask what is some safe way to remove nonneeded files created by some programs? (I can recognize unneeded files created directly by myself, such as a file copied by me into /tmp, but not those not created directly by me even though ls may show my name as the creater).In particular, I ran a program called pdfbeads, it created somevery big file(s) in /tmp (I suspect the file is /tmp/magick-HMwXHfQo which is 1.2GB),and then my / partition for/tmp ranout of space and the program aborted. Now my /  partition is still filled up. How can I clean /tmp forfreeing up the space taken by non-needed files?OS: Ubuntu 12.04
How to clean /tmp?
ubuntu;tmp