Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    2

    Default How to Delete TMP files

    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. #2
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    Quote Originally Posted by PerVisHost
    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

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    just to add .. do not delete mysql.sock and horde.log. they are much in need.

  5. #5
    Member
    Join Date
    Aug 2004
    Location
    Oradea, Romania
    Posts
    6

    Lightbulb

    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. #6
    Member
    Join Date
    Jun 2004
    Location
    Columbus, OH
    Posts
    113

    Default

    Quote Originally Posted by linux-image
    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

Similar Threads & Tags
Similar threads

  1. Can I delete these off /tmp?
    By iUnknown in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-08-2008, 07:16 PM
  2. Is it safe to delete these files in the tmp directory?
    By sjj in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-08-2007, 09:35 PM
  3. Can I Delete These AWSTATS .tmp files?
    By Jason Brice in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-31-2006, 09:03 AM
  4. How can I delete /tmp and /var/tmp files?
    By Izkabola in forum E-mail Discussions
    Replies: 5
    Last Post: 01-02-2005, 04:25 AM
  5. Delete files from /tmp? Which ones?
    By Constantin in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-30-2003, 02:55 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube