Show the most CPU-intensive processes first.
Section: Filtering and Sorting
Sort by CPU
bash
bash
ps -eo pid,comm,%cpu,%mem --sort=-%cpu | headExplanation
Show the most CPU-intensive processes first.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Filtering and Sorting