Online Linux Terminal Logo
OnlineLinuxTerminal
System & ProcessesCLI Reference

$top

Display real-time Linux processes and system resource utilization.

Syntax DefinitionPOSIX standard
top [OPTIONS]
Linux Community2.4k Online

Chat with real Linux users, learn new commands & get free cheat sheet PDFs.

Try `top` Live in Interactive Sandbox

Zero-install client simulation with real-time feedback.

Open in Fullscreen Workspace↗
bash — terminal

Overview & How top Works

`top` is the built-in dynamic process viewer for Unix systems. It displays real-time CPU load averages, memory/swap usage, task states, and a continuously updated list of top resource-consuming processes sorted by CPU or RAM.

Common Flags & Command Options

Flag / OptionDescription
-bBatch mode for sending output to files or scripts.
-n [iter]Exit after the specified number of refresh iterations.
-u [user]Monitor only processes owned by the specified user.

Practical Real-World Examples

Example #1Inspect system resource snapshot

Runs top and outputs system load statistics.

Frequently Asked Questions

How do you exit top in the terminal?

Press `q` on your keyboard to quit the interactive top interface.