UnixDroid

Processes · Linux command

top command in Linux

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

OptionWhat it does
P / Msort by CPU / memory
kkill a process
qquit

top examples

$ top Try it ›

live view

$ htop Try it ›

a friendlier version (if installed)

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.