比如统计用户名为albert运行python的进程数目

 

ps -u albert | grep -c "python"

 

黄世宇/Shiyu Huang's Personal Page:​​https://huangshiyu13.github.io/​