获取进程信息相关命令

任务ID: pid: 进程ID tid:线程ID tgid:主线程ID 显示线程需要增加 L参数 ps -eLo pid,tid,tgid,pgrp,args 任务状态: 进程状态描述: D uninterruptible sleep (usually IO) R running or runnable (on run queue) S interruptible sleep (waiting for an event to complete) T stopped by job control signal t stopped by debugger during the tracing W paging (not valid since the 2.6.xx kernel) X dead (should never be seen) Z defunct (“zombie”) process, terminated but not reaped by its parent ...

2019-07-03 · 2 min · 350 words