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.

Thousands of core.xxxx files- easy way to remove?

Discussion in 'General Discussion' started by skoker, Sep 5, 2006.

  1. skoker

    skoker Member

    Joined:
    Jun 8, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    This weekend I had httpd, mysql, and ftp all fail on me at the same time, and now all of my users are stuck with thousands of core.xxxx files in all of their websites. Is there any easy way to remove all of these files?
     
  2. MMarko

    MMarko Well-Known Member

    Joined:
    Apr 18, 2005
    Messages:
    316
    Likes Received:
    0
    Trophy Points:
    16
    rm -f core*
     
  3. skoker

    skoker Member

    Joined:
    Jun 8, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    That doesn't do anything.
     
  4. rsaylor

    rsaylor Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    160
    Likes Received:
    1
    Trophy Points:
    18
    sounds like there are too many files for the wildcard to handle. Try

    rm -f core...something* to lower the wildcard usage then delete the files in batches.
     
  5. skoker

    skoker Member

    Joined:
    Jun 8, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    I think I got it:

    PHP:
    find / \( -name "core.***" \) -print -exec rm -rf {} \;
     
  6. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    upgrade zend optimizer to 3.0.1

    pico /scripts/installzendopt modify version to 3.0.1 and you will go fine.

    regards
     
Loading...

Share This Page