What does top do?
top shows a live view of the processes using the most CPU and memory, plus load and uptime.
top
Most useful options
| Option | What it does |
|---|---|
| P / M | sort by CPU / memory |
| k | kill a process |
| q | quit |
top examples
In security work
A process eating 100% CPU on a server can be a crypto-miner left by attackers.
Questions about top
How do I quit top?
Press q.