Easy Tutorial
❮ Linux Comm Ulimit Linux Comm Ls ❯

Linux top Command

Linux Command Manual

The Linux top command is used to display real-time dynamic information about processes.

Usage permission: All users.

Syntax

top [-] [d delay] [q] [c] [S] [s] [i] [n] [b]

Parameter Description:

Examples

Display process information

# top

Display full commands

# top -c

Display process information in batch mode

# top -b

Display process information in cumulative mode

# top -S

Set the number of information updates

top -n 2

// Indicates that the update will terminate after two updates

Set the information update time

# top -d 3

// Indicates that the update interval is 3 seconds

Display information about a specific process

# top -p 139

// Displays information about the process with PID 139, including CPU and memory usage

Display and exit after ten updates

top -n 10

Users will not be able to use interactive commands to command processes

top -s

Linux Command Manual

❮ Linux Comm Ulimit Linux Comm Ls ❯