使用ps,sort,uniq处理每个用户计数器
Hujiuxiang
・1 分钟阅读
每个用户计数器的进程数
ps hax -o user | sort | uniq -c
示例输出
1 bin 1 dhcp 82 daemon 2 haldaemon 1 messagebus 99 root