top 查看指定 pid 进程

May 23, 2019
linux
  1. 通过关键字找到进程的 pid
ps aux | grep -i $keyword
  1. 使用 top -p 查看进程状态
top -p $pid

查看占用端口的是哪个进程

linux