1、查看内存占用最多的进程
ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head
2\查看占用cpu最多的进程
ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head
1、查看内存占用最多的进程
ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head
2\查看占用cpu最多的进程
ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head