Forrest logo
back to the coredumpctl tool

coredumpctl:tldr:55470

coredumpctl: Extract the last core dump of a program to a file.
$ coredumpctl --output=${filename} dump ${program}
try on your machine

The command coredumpctl --output=${filename} dump ${program} is used to generate a core dump file for a specific program and save it with a specified filename.

Here's a breakdown of the different parts of the command:

  1. coredumpctl: This is the command-line utility used for managing core dumps in systems that use systemd. It allows you to list, inspect, and manipulate core dump files.

  2. --output=${filename}: This option specifies the output filename for the generated core dump file. The ${filename} is a placeholder that should be replaced with the desired name for the file. For example, if you want to save the core dump as "my_program.core", you would replace ${filename} with "my_program.core".

  3. dump: This is the command or program for which you want to generate a core dump. Replace ${program} with the name of the desired program. For example, if you want to generate a core dump for a program called my_program, you would replace ${program} with "my_program".

By running this command, a core dump file will be generated for the specified program and saved using the provided filename. The core dump file contains a snapshot of the program's memory state at the time of the crash or exception, which can be useful for debugging and troubleshooting software issues.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the coredumpctl tool