Linux查看占用CPU和内存的 的程序
占内存的程序命令
ps aux | head -1;ps aux|sort -k4nr|head -5
占CPU的程序命令
ps aux | head -1;ps aux|sort -k3nr|head -5
人生得意须尽欢,莫使金樽空对月。 天生我材必有用,千金散尽还复来。
占内存的程序命令
ps aux | head -1;ps aux|sort -k4nr|head -5
占CPU的程序命令
ps aux | head -1;ps aux|sort -k3nr|head -5