I'm trying to delete the core file generated from when my program suddenly crashes.
For that i use this piece of code:
find . -name 'core' -delete
My question is: Is this a correct way of doing it ? Is there a better and more efficient way?
If you indeed want to delete those core file, you can use:
find . -name "core*" -exec rm -f {} \;
Note: [including semicolon]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With