linux 下 取进程占用内存(MEM)最高的前10个进程

时间:2021-01-30 11:52:19   收藏:0   阅读:0

# 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

 

 

from:https://www.cnblogs.com/liuzhengliang/p/5343988.html

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!