User Tools

Site Tools


linux:top

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:top [2017/12/27 14:39] – created Wulf Rajeklinux:top [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Top via ps ====== ====== Top via ps ======
  
-Single line top cpu/ram using processes:+The following command will show the list of top processes ordered by RAM and CPU use in descendant form (remove the pipeline and head if you want to see the full list):
  
 <code> <code>
 ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
 +</code>
 +
 +or sort by cpu:
 +
 +<code>
 +ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head
 </code> </code>
linux/top.1514385583.txt.gz · Last modified: 2023/05/29 11:53 (external edit)