top
<p><strong>一、查CPU总核数与总内存</strong>
运行top命令后,键入1
效果如图:
<img src="https://www.showdoc.cc/server/api/common/visitfile/sign/718e84891c21df656876b3b649271efe?showdoc=.jpg" alt="" /></p>
<p><strong>二、按进程的内存使用率排序</strong>
运行top命令后,键入大写M
效果如图:
<img src="https://www.showdoc.cc/server/api/common/visitfile/sign/81f876d567e2e35a06612c12af9ed3ee?showdoc=.jpg" alt="" /></p>
<p><strong>三、按进程的CPU使用率排序</strong>
运行top命令后,键入大写P
效果如图:
<img src="https://www.showdoc.cc/server/api/common/visitfile/sign/480e7a899a606ae238b0ba2690f9926b?showdoc=.jpg" alt="" /></p>
<p><strong>四、查看独个进程的使用情况</strong>
运行top -p pid</p>
<pre><code>top -p 14614</code></pre>
<p>效果图:
<img src="https://www.showdoc.cc/server/api/common/visitfile/sign/8ebbda670df7dfdebf2c85106452f26d?showdoc=.jpg" alt="" /></p>