Dave's Brain

Browse - Computer Tips - How can I quickly find all core files on my box?

Date: 2012jul5
OS: Linux

Q.  How can I quickly find all core files on my box?

A.  This is fast:

locate -r '^core\.'
It finds all files that begin with "core." as core files do. If your system is like most the database locate uses is only updated nightly so may be a bit out of date. But this is fine for a script that looks for old core files to delete them.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.