---
title: "linux 下取进程占用 cpu/内存 最高的前10个进程 "
author: "coach"
date: "2011-09-15T16:16:32Z"
tags: []
categories: ["操作系统"]
slug: "linux-cpu-10"
draft: false
lastmod: "2011-09-15T16:16:32Z"
id: 1172672
url: "https://coach.iteye.com/blog/1172672"
---

# 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