vishnu Simbu vishnu Simbu - 7 days ago 6
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

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.

and

rm -rf *.*

It will delete all the files inside that directory.