vishnu Simbu vishnu Simbu - 1 year ago 85
Linux Question

command to clean tmp directory on my web server

I was getting

write failed: No space left on device (28)
in my websites.
So I checked my tmp size using ssh and it was 100% full.

What command can I use through ssh to free up space in the tmp directory?

Answer Source

You can remove the file inside the tmp directory just go to the tmp directory

cd tmp/

and run the following command

rm -rf ./

It will delete all the directories inside that directory.


rm -rf *.*

It will delete all the files inside that directory.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download