比如统计用户名为albert运行python的进程数目
ps -u albert | grep -c "python"
Linux之统计特定进程运行数量
原文:http://www.cnblogs.com/huangshiyu13/p/7753912.html