Wednesday, January 14, 2009

finding and deleting core files ?

sudo find / -name core -exec rm -i '{}' \;

Mind the use of '{}' and \; (there is a space before \;). '{}' matches the file that was found, while \; terminate the exec statement.

No comments:

Post a Comment