Get a quick textual top list.
Section: Non-interactive companions
List top CPU consumers with ps
bash
bash
ps -eo pid,user,%cpu,%mem,comm --sort=-%cpu | headExplanation
Great companion when you need machine-copyable output rather than an interactive UI.
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 Non-interactive companions
Capture a batch snapshot with top
Use top when you need non-interactive output.
Read detailed status from /proc
Inspect one process beyond what htop shows.
Correlate a PID with journal logs
Inspect logs for a systemd service around an incident.