DISQUS

Tech-Recipes: Find and delete all core files | UNIX | Tech-Recipes

  • Stef · 1 year ago
    sparkomemphis on http://ncaabbs.com/showthread.php?tid=229890 has this example that will help prevent removing non-core files named (lets not argue that there should not be any of these) core.

    find . -name core\* -user $USER -type f -size +1000000c -exec file {} \; -exec ls -l {} \; -exec printf "\n\ny to remove this core file\n" \; -exec /bin/rm -i {} \;
  • Quinn McHenry · 1 year ago
    I like that! Nice bit of code. Thanks for sharing!