top Cheatsheet - Process Monitoring
All essential top commands organized by use case, with 52+ entries you can copy and run directly. Find the right command fast when you need it.
Back to SysOpstop Basics 6
topLaunch top monitoring
top -d 5Set refresh interval to 5 seconds
top -p 1234Monitor a single PID
top -u usernameMonitor a user's processes only
top -n 10Exit after 10 refreshes
top -b -n 1 > top.logBatch mode, write to a file
top Interactive 8
h / ?Show help
qQuit
SpaceImmediate refresh
kKill a process (enter PID)
rRenice a process (enter PID)
nSet number of refreshes
sSet refresh interval
WSave config to ~/.toprc
top Sort & Display 10
MSort by memory
PSort by CPU
TSort by time
NSort by PID
cToggle full command path
HToggle threads
iToggle idle processes
1Show per-core CPU usage
fSelect displayed fields
oSort field
htop Basics 5
htopLaunch htop (needs install)
htop -d 5Set refresh interval to 5 seconds
htop -u usernameMonitor a user only
htop --no-colorNo color output
htop --treeTree view
htop Interactive 17
F1 / h / ?Show help
F2 / SSetup
F3 / /Search
F4 / \Filter
F5 / tTree view
F6 / >Sort field
F7 / [Lower priority
F8 / ]Raise priority
F9 / kKill process
F10 / qQuit
SpaceTag a process
UUntag all
cShow full command path
HShow/hide user processes
KShow/hide kernel threads
pShow/hide full path
tShow/hide time column
Load Average 6
1 min / 5 min / 15 minSystem average load (1/5/15 min)
> CPU coresSystem overloaded
tasks: total / running / sleeping / stopped / zombieProcess statistics
%Cpu(s): us / sy / ni / id / wa / hi / si / stCPU usage breakdown
MiB Mem: total / free / used / buff/cacheMemory usage
MiB Swap: total / free / usedSwap usage
Tips
- top ships with the system; htop needs install but is friendlier and more powerful.
- Load average above the core count means overload — investigate high-load processes.
- High wa (IO wait) means disk bottleneck; high hi/si (interrupts) means network/hardware issues.
Official References
Commands are compiled from the official docs below. Click to verify the latest usage.
Maintained by LaoHand
Publicly updated on Jul 21, 2026, continuously proofread against official docs.
Contact Us
Wrong command or description? Send us corrections, business inquiries or product feedback by email.
Contact Us