top
Interactive process viewer. Sort by CPU/memory, filter by user, and monitor live usage.
Synopsis
top [options]
Core Options
-o fieldSort by field (e.g., %CPU, %MEM).
-p PIDMonitor specific PID(s).
-u USERFilter by user.
-d SECRefresh delay in seconds.
Usage Examples
Sort by CPU
Start top sorted by CPU usage.
top -o %CPUWatch a PID
Monitor a single process.
top -p 1234Interactive Keys
Useful keys inside top.
P (CPU) M (MEM) k (kill) 1 (per-core) q (quit)Built for builders.