Portal Home > Knowledgebase > Articles Database > tmp folder


tmp folder




Posted by crzy, 01-04-2008, 06:04 PM
how to clear tmp folder i got %100 full so some websites doesn't work at the moment.. what is rubbish what is safe to delete?

Posted by sonic10, 01-04-2008, 06:11 PM
Most distros delete non critical tmp files on boot and/or shutdown. Perhaps try a reboot.

Posted by sasha, 01-05-2008, 12:47 PM
Do NOT reboot. That is bad idea. That might hide away the way the partition got full in the first place and you will have no way to prevent it from happening again. Here are some useful utilities. df -h / show disk space usage per partition cd /tmp du -sh * that will give you total folder size or the current directory du -sh * that will give you the size of each item in the folder ls -lah --sort=size * that will sort files by size

Posted by activelobby4u, 01-06-2008, 01:09 AM
There might be session files taking up the disk space. clear them .. restart your services such as apache mysl etc and you can proceed from there

Posted by Tim Greer, 01-06-2008, 10:11 PM
You can remove some of it, and most anything in /tmp is just a temporary file that you can remove. The mysql.sock is not a regular file (it shouldn't be anyway), but that's just a matter of restarting MySQL is the sock file is missing. The other looks like a temporary backup, given the name. Pear is normal on a lot of servers, and cpbandwidth is as well. Neither of which should be the cause of any large usage or problems. lost+found is the same (keep that). As mentioned, you likely have a lot of temporary/session files there. You can use ls, or find, etc. to see what files are the issue. Is this inode usage (too many inodes) or disk space itself, when you say it is at 100% usage?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Plug Host (Views: 602)

Language: