Linux Commands Examples

A great documentation place for Linux commands


Generate a core file for a running process

see also : gdb


gcore [-o filename] pid

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


echo "Usage: rsc core [pid]"
gcore > /dev/null 2>&1
if [ $? = 0 ]; then
gcore $1


gcore generates a core file for the process specified by its process ID, pid. By default, the core file is written to, in the current directory.

write core file to filename instead of


Copyright © 2003, 2005, 2007, 2008 Free Software Foundation, Inc.

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be included in translations approved by the Free Software Foundation instead of in the original English.

see also

gdb , core

How can this site be more helpful to YOU ?

give  feedback