vishnu Simbu vishnu Simbu - 3 months ago 35
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?


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.