How to Delete TMP files

PerVisHost

Registered
Sep 4, 2004
2
0
151
Hello. I have a server and I have root access to that server. I need to know how I can view and delete things in tmp. It is full. Can anyone help me?
 

anup123

Well-Known Member
Mar 29, 2004
889
1
168
This Planet
PerVisHost said:
Hello. I have a server and I have root access to that server. I need to know how I can view and delete things in tmp. It is full. Can anyone help me?
cd /tmp

ls -al sess_*
this is what takes up most of it in case you do not clear up the same regularly.

rm -f sess_*

ls -al *.wrk
This comes up in case you use mod_gzip

rm -f *.wrk
now check what other stuff lies there

Anup
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
You should be very careful what you delete out of the /tmp partition. I would recommend having someone knowledgable have a look for you so that they can advise you on what is filling it up, and more importantly, why.
 

linux-image

Well-Known Member
Jun 8, 2004
1,190
1
168
India
cPanel Access Level
Root Administrator
just to add .. do not delete mysql.sock and horde.log. they are much in need.
 

sjackson909

Well-Known Member
Jun 8, 2004
113
0
166
Columbus, OH
linux-image said:
just to add .. do not delete mysql.sock and horde.log. they are much in need.
Yes don't remove your mysql.sock. I have never seen any issues removing the horde.log, what kind of issues do you run into?

Thanks
-Seth