Linux 根据进程PID,统计物理内存占用 Shell 脚本 #!/bin/bash get_process_meminfo() { local pid="$1" if [[ "$(echo "$pid" |