LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gcore

generates process core dumps

TLDR

Generate core dump
$ gcore [pid]
copy
Specify output file
$ gcore -o [corefile] [pid]
copy
Generate for all threads
$ gcore -a [pid]
copy

SYNOPSIS

gcore [options] pid

DESCRIPTION

gcore generates a core dump of a running process without terminating it. It captures the process memory state for debugging or analysis while the process continues running.The tool attaches to the target process temporarily to create the dump. The resulting core file can be analyzed with debuggers like GDB to examine program state.gcore is useful for debugging production systems without causing downtime.

PARAMETERS

PID

Process ID to dump.
-o FILE
Output filename prefix.
-a
Dump all threads.
--help
Display help information.

INSTALL

sudo apt install gdb
copy
sudo dnf install gdb
copy
sudo pacman -S gdb
copy
sudo apk add gdb
copy
sudo zypper install gdb
copy
brew install gdb
copy
nix profile install nixpkgs#gdb
copy

CAVEATS

Requires ptrace permissions. Large processes create large dumps. May briefly pause target process.

HISTORY

gcore is part of GDB (GNU Debugger), providing non-destructive core dump generation for debugging running processes without interrupting service.

SEE ALSO

gdb(1), kill(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid