Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Yes, Rich_c is right. Just wait for your next reboot and /tmp gets cleared out automatically. I don't think it's a clever idea to remove everything from /tmp on a running system. Lots of apps put stuff there until they are closed down. Removing these /tmp file would probably bring your system down. You can certainly delete specific files that you know are no longer necessary (I use /tmp as my default download folder and delete installation files all the time). Why do you want to delete everything from /tmp anyway?
Rebooting didnt remove the files in /tmp (slackware 12.1), but doing:
# rm -rf -- *
as suggested did remove all the files, and it doesnt seem to have created any problems (at least not yet!)
p.s jdkaye, I just wanted a clearout
There are always going to be files in /tmp for the reasons explained above. Are you sure the ones that you save in /tmp when you rebooted arent' fresh ones installed after your latest reboot? You can check the date/time of the files by doing