Find and delete all core files

Contributor Icon Contributed by qmchenry Date Icon September 2, 2003  
Tag Icon Tagged: UNIX

Locate and remove all core files in system using the find command


find / -name core -exec rm {} \;

The find command replaces the {} characters in the command above with the filenames that it finds. You must include the \ immediately before the ; character.

Previous recipe | Next recipe |
 

Viewing 2 Comments

 
close Reblog this comment
blog comments powered by Disqus