Open In App

pmap command in Linux with Examples

Improve
Improve
Like Article
Like
Save
Share
Report

The pmap command in Linux is used to display the memory map of a process. A memory map indicates how memory is spread out.

Syntax:

pmap [options] pid [...]

Example:

Options:

  • -x : This option is used to display the memory map in an extended format.

    Example:

    pmap -x 9466

  • -p : This option is used to display the full path to the files.

    Example:

    pmap -p 9466

  • -d : This option is used to display the device format.

    Example:

    pmap -d 9466

  • -q : This option is used to ignore the column names while displaying the report of the memory map.

    Example:

    pmap -q -d 9466

  • -A : This option is used to display results to the given range. Notice that the low and high arguments are single string separated with a comma.

    Example:

    pmap -A 000055a5908f8000, 00007fd264ed2000 11747
  • -XX : This option is used to display everything the kernel provides.

    Example:

    pmap -xx [PID]
  • -n : This option is used to create a new configuration.

    Example:

    pmap -n
  • -c : This option is used to read the default configuration.

    Example:

    pmap -c [PID]
  • -h : This option is used to display help text.
    pmap -h
  • -v : This option is used to display the version information and exit.
    pmap -v

Last Updated : 23 Apr, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads