Skip to content

Commit b324523

Browse files
authored
Update ps.md
1 parent 7afb5c6 commit b324523

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

command/ps.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ ps -o pid,uname,comm -C nginx # 显示一个父进程的子进程
101101
ps -e -o pid,uname=USERNAME,pcpu=CPU_USAGE,pmem,comm # 重定义标签
102102
ps -e -o pid,comm,etime # 显示进程运行的时间
103103
ps -aux | grep named # 查看named进程详细信息
104+
ps -o command -p 91730 | sed -n 2p # 通过进程id获取服务名称
104105
```
105106

106107
将目前属于您自己这次登入的 PID 与相关信息列示出来

0 commit comments

Comments
 (0)