The pmap command in Linux is used to display the memory map of a process. A memory map indicates how memory is spread out.
How do I run a pmap command?
Basic usage is simple. Just execute the ‘pmap’ command without any option. Of course, you need to pass a process PID as input. So there you go, the output first shows you the name of the process and then follows it up with the memory map.
What is anon in pmap?
Anonymous memory: Memory not relating to any named object or file within the file system is reported as [ anon ]. The pmap command displays common names for certain known anonymous memory mappings, such as: [ heap ] The process heap.