[6784] in RedHat Linux List
Re: Using "find" to get rid of cores etc.
daemon@ATHENA.MIT.EDU (Ray Curtis)
Sat Nov 30 11:28:59 1996
Date: Sat, 30 Nov 1996 11:25:57 -0500
From: ray@fred.net (Ray Curtis)
To: redhat-list@redhat.com
In-Reply-To: <199611301603.LAA01956@hexagram.brickandivy.com>
Reply-To: ray@fred.net
Resent-From: redhat-list@redhat.com
Chris Powell writes:
> > find . -name core -exec rm {} \; -print
> >
> > Dave
>
> To avoid those pesky "core" directories, however, insert "-type f" before
> "-name" and you'll be pleased with the result.
>
I don't mean to be a wet towel here, but why does everyone want to
remove these files with a script, dangerous at best. I listed a
simple function yesterday to find all these nasty core files and
a suggested way to not create anymore of them. Once you have found
all of then remove them manually. This seems like the best way to
go INHO.
Again the function for a .bashrc file:
function ff { find . -name "$*" -print; }
Also add this to the same file so as not to create anymore core files:
ulimit -c 0
Just my .02
---------------------------------------------------------------
Linux Host 'PICARD'
email: ray@fred.net
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null