• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

coredumpctl Command Examples in Linux

by Deepika

The coredumpctl command is a utility in Linux that is used to manage core dumps, which are snapshots of a process’s memory at the time of a crash. Core dumps can be useful for debugging purposes, as they provide information about the state of the process at the time of the crash.

To list all available core dumps, use the following command:

# coredumpctl list

This will display a list of all available core dumps, including the PID of the process, the name of the executable, and the time of the crash.

coredumpctl Command Examples

1. List all captured core dumps:

# coredumpctl list

2. List captured core dumps for a program:

# coredumpctl list program

3. Show information about the core dumps matching a program with `PID`:

# coredumpctl info PID

4. Invoke debugger using the last core dump of a program:

# coredumpctl debug program

5. Extract the last core dump of a program to a file:

# coredumpctl --output=path/to/file dump program

Filed Under: Linux

Some more articles you might also be interested in …

  1. iw Command Examples in Linux
  2. atool: command not found
  3. alias: command not found
  4. debsecan: command not found
  5. grub-mkconfig Command Options
  6. datamash Command Examples in Linux
  7. lastcomm: command not found
  8. rmmod Command Examples in Linux
  9. Linux OS Service ‘o2cb’
  10. aws lambda: CLI for AWS lambda (Command Examples)

You May Also Like

Primary Sidebar

Recent Posts

  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code
  • cryfs: A cryptographic filesystem for the cloud

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright