Aza*_*sai 6 linux bash shell ubuntu
我希望cpu百分比按降序排列.当我发出命令:
top -bn 1 | grep "^ " | awk '{ printf("%-8s %-8s \n", $2, $9); }' | head -8
Run Code Online (Sandbox Code Playgroud)
它显示了使用CPU不是最重要的进程.
And*_*idy 23
运行top作为一个过程(我正在使用Ubuntu 14.04)
top
Run Code Online (Sandbox Code Playgroud)
一旦进入顶峰......
P < - 按CPU使用情况排序
M < - 按MEM使用排序
z < - 添加炫酷的视觉色彩
x < - 突出显示当前正在排序的列