The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Delete TMP files

Discussion in 'E-mail Discussions' started by PerVisHost, Sep 4, 2004.

  1. PerVisHost

    PerVisHost Registered

    Joined:
    Sep 4, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    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
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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.
     
  4. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    just to add .. do not delete mysql.sock and horde.log. they are much in need.
     
  5. Alexandru Ungur

    Joined:
    Aug 31, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Oradea, Romania
    Just search for "tmpwatch" it is the right tool for the job (cleans up a directory for files that are older than X hours, does not touch sockets, etc.)
     
  6. sjackson909

    sjackson909 Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Columbus, OH
    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
     
Loading...

Share This Page