日期:2014-05-16  浏览次数:20627 次

linux 下取进程占用 cpu/内存 最高的前10个进程

此文于2010-12-12被推荐到CSDN首页
如何被推荐?

# linux 下 取进程占用 cpu 最高的前10个进程
ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head


# linux 下 取进程占用内存(MEM)最高的前10个进程
ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head