1.linux查看占用内存最多的程序ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head2.查看占用cpu最多的程序ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head