CENTOS 5 - Clearing up TMP Files

Discussion in 'Apache' started by pspcustomfirmware, Nov 16, 2011.

  1. #1
    HEy guys i need a bit of a help here

    I have a godaddy VPS , and i'm looking for a way to clean out the TMP file which is full ..

    Is there any command I could run via SSH Putty to clean out temp file older then 12 hours ?
     
    pspcustomfirmware, Nov 16, 2011 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hello there,

    I would suggest finding out why it keeps filling up, and also look at the size of it, and increase if it needs to. To answer your question though, this command should get the result you are looking for:

    find /tmp -cmin +720 -exec rm {} \;
    Code (markup):
    Chris
     
    RHS-Chris, Nov 16, 2011 IP