linux中查看占用cpu和内存最高的进程

 

1、占用内存最高的进程

[root@centos7 ne]# ps -aux | sort -k 4nr | head -n 3

 

2、占用cpu最高的进程

[root@centos7 ne]# ps -aux | sort -k 3nr | head -n 3

 

posted @ 2022-04-12 14:07  小鲨鱼2018  阅读(631)  评论(0编辑  收藏  举报