top

Interactive process viewer. Sort by CPU/memory, filter by user, and monitor live usage.

Synopsis

top [options]

Core Options

-o field

Sort by field (e.g., %CPU, %MEM).

-p PID

Monitor specific PID(s).

-u USER

Filter by user.

-d SEC

Refresh delay in seconds.

Usage Examples

Sort by CPU

Start top sorted by CPU usage.

top -o %CPU

Watch a PID

Monitor a single process.

top -p 1234

Interactive Keys

Useful keys inside top.

P (CPU)  M (MEM)  k (kill)  1 (per-core)  q (quit)
Built for builders.