linux top 命令如何依据指定PID来获取CPU信息


如题,现在top命令直接返回的所有的程序信息,现在已知PID,top命令怎么通过PID只返回当前PID的进程信息
图片描述

Linux top

看UP主神ID 10 years, 7 months ago

 top -p `pidof system_server`
或者
top -p `pidof system_server` -c -H

-p 表示进程PID
-c 显示进程的绝对路径
-H 显示进程的所有线程

goodman answered 10 years, 7 months ago

top -p 807

raejean answered 10 years, 7 months ago

Your Answer