topA live view of load, CPU, memory and the busiest processes. Press q to quit.
A live, sortable view of processes and system load, CPU and memory.
sudo apt install procpstopA live view of load, CPU, memory and the busiest processes. Press q to quit.
top -u <user>Only one user’s processes.
Example
top -u postgrestop -p <pid>,<pid>Watches specific processes.
Example
top -p 1337,2048top -d <seconds>Changes the refresh interval.
Example
top -d 1top -o %MEMSorts by memory instead of CPU.
top -b -n 1 | head -n 20Batch mode: one snapshot printed as plain text, suitable for logs and scripts.
top -H -p <pid>Shows the threads of one process.
Example
top -H -p 1337Reports a snapshot of running processes, with owners, resource usage and full command lines.
Shows total, used and available memory and swap.
Sends signals to processes — terminate gracefully, force-kill, reload or pause.
Runs a command repeatedly and shows its output full-screen, highlighting what changes between runs.