[6722] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Using "find" to get rid of cores etc.

daemon@ATHENA.MIT.EDU (Ray Curtis)
Fri Nov 29 19:38:47 1996

Date: Fri, 29 Nov 1996 19:33:18 -0500
From: ray@fred.net (Ray Curtis)
To: redhat-list@redhat.com
In-Reply-To: <329F704E.2DDB247D@athena.bcit.bc.ca>
Reply-To: ray@fred.net
Resent-From: redhat-list@redhat.com


I have a little function I use, I call 'ff' for fast find.
Try putting this into your .bashrc file.

function ff { find . -name "$*" -print; }

You can use this from anywhere, but in your case I suggest you
issue the command command 'ff /core' that should locate all your
core files. You can also use wildcards such as 'ff /core*'.
Be sure to re-read your .bashrc file before trying to use it
the first time by issuing command 'source .bashrc'.
After you have done this add this to your .bashrc file, so as
not to create anymore core files.

ulimit -c 0


Hope this helps, it is a nice feature, I use it all the time.


Studentid writes:
 > I've been trying to get rid of all cores in my home directory
 > which also contains about 100 sub- and subsub-directories
 > using find command:
 > 
 > main$ cd    
 > main$ find ./ -name core -exec rm
 > find: missing argument to `-exec'
 > main$ find ./ -name core -exec rm {}
 > find: missing argument to `-exec'
 > main$ find ./ -name core -exec rm {core}
 > find: missing argument to `-exec'
 > main$ find ./ -name core -exec rm core {}
 > find: missing argument to `-exec'
 > main$ find ./  -exec rm -rf core {}
 > find: missing argument to `-exec'
 > main$ find ./  -exec rm  core {}
 > find: missing argument to `-exec'
 > main$ find ./ -name core -exec "rm core"
 > find: missing argument to `-exec'
 > main$ find ./ -name core -exec "rm core" {}
 > find: missing argument to `-exec'
 > main$ 
 > 
 > Nothing works. I checked find man page and failed to understand
 > how. Help anyone? Redhat archive search isn't working.  :( I have
 > at least 100 cores sitting all over the place.

---------------------------------------------------------------
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


home help back first fref pref prev next nref lref last post