gcore
Create ("get") a core image of each running process specified. The core image can be used with a debugger. You must own the running process or be a privileged user to use this command.
-o
Create core file named file . process_id (default is core. process_id ).
.
core.