Name

gcore

Synopsis

    gcore [option]process_ids

Solaris and GNU/Linux only. 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.

Common Option

-o file

Place the output in a file named file . process_id (default is core. process_id).

Solaris Options

-c content

Place content in the core file. See coreadm(1M) for details on the values of content.

-F

Force; take control of pid even if another process had control of it.

-g

Produce a core file in the global repository with global content as configured via coreadm(1M). You must have permission to create files in the global core repository.

-p

Produce a core file in the process-specific repository with process-specific content as configured via coreadm(1M). You must have permission to create files in the process-specific core repository.

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.