Linux command
pmap 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
pmap 1234
Example
pmap -x 1234
Example
pmap -d 1234
Example
pmap -A low,high 1234
Example
pmap 1234 5678
Example
pmap -XX 1234
说明
pmap reports the memory map of a process or processes. It displays how memory is allocated and used by each process, including mapped files, heap, stack, and shared libraries.
参数
- -x, --extended
- Display extended format with additional details
- -d, --device
- Show device format output
- -q, --quiet
- Suppress header and footer lines
- -A, --range low,high
- Restrict results to specified address range
- -X
- Provide additional details beyond -x option
- -XX
- Display all kernel-provided information
- -p, --show-path
- Include full file paths in mapping column
- -c, --read-rc
- Load default configuration
- -C, --read-rc-from file
- Load configuration from specified file
- -n, --create-rc
- Generate new default configuration
- -N, --create-rc-to file
- Generate configuration to specified file
FAQ
What is the pmap command used for?
pmap reports the memory map of a process or processes. It displays how memory is allocated and used by each process, including mapped files, heap, stack, and shared libraries.
How do I run a basic pmap example?
Run `pmap 1234` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -x, --extended do in pmap?
Display extended format with additional details