Open In App
Related Articles

pmap command in Linux with Examples

Improve Article
Improve
Save Article
Save
Like Article
Like

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
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 23 Apr, 2019
Like Article
Save Article
Similar Reads