# 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
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
本文介绍了如何在Linux环境下通过ps aux命令筛选并获取占用CPU和内存资源最高的前10个进程,提供实用的Shell脚本技巧。
2127

被折叠的 条评论
为什么被折叠?



