top
Display Linux processes. Provides a dynamic real-time view of a running system.
Synopsis
top
Core Options
-u userShow only processes owned by user.
-p pidMonitor only processes with specified Process IDs.
-n numExit after num iterations.
-bBatch mode. Usefull for sending output to a file.
Usage Examples
Basic Usage
Start top. Press 'q' to quit.
topFilter by User
Show only processes for user 'root'.
top -u rootSort by CPU (Interactive)
Press 'P' (Shift+p) while running top.
(Inside top) Press PSort by Memory (Interactive)
Press 'M' (Shift+m) while running top.
(Inside top) Press MKill a Process (Interactive)
Press 'k' then enter the PID.
(Inside top) Press kBuilt for builders.