top

Display Linux processes. Provides a dynamic real-time view of a running system.

Synopsis

top

Core Options

-u user

Show only processes owned by user.

-p pid

Monitor only processes with specified Process IDs.

-n num

Exit after num iterations.

-b

Batch mode. Usefull for sending output to a file.

Usage Examples

Basic Usage

Start top. Press 'q' to quit.

top

Filter by User

Show only processes for user 'root'.

top -u root

Sort by CPU (Interactive)

Press 'P' (Shift+p) while running top.

(Inside top) Press P

Sort by Memory (Interactive)

Press 'M' (Shift+m) while running top.

(Inside top) Press M

Kill a Process (Interactive)

Press 'k' then enter the PID.

(Inside top) Press k
Built for builders.