The top program is a text based application that displays a real-time summary of resource usage and a list of processes.
The on-screen display can be modified by issuing commands linked to keyboard keys
Type
The on-screen display can be modified by issuing commands linked to keyboard keys
Type
top to launch the program and try these common commands:
t
Toggles between text and graphical views of CPU usage (none, text, pipes, solid)
m
Toggles between text and graphical views of memory usage (none, text, pipes, solid)
E
Toggles unit size for memory (KiB through EiB)
1
[1] Shows CPU usage per core, while [2] shows per socket
c
Toggle COMMAND to/from executable vs full cmd line
d
Change refresh rate; Enter number in increments of .1 seconds
<
Change sort column one column to the left
>
Change sort column one column to the right
Note: it can be hard to detect which column is currently sorted
Recommend pressing [<] repeatedly to ensure sort order is left-most column
Then pressing [>] and counting off each Column
Recommend pressing [<] repeatedly to ensure sort order is left-most column
Then pressing [>] and counting off each Column
R
Toggle ascending/descending sort order of current column
↓
Scroll down through list of processes
↑
Scroll up through list of processes
→
Scroll right for information that runs offscreen
←
Scroll left to return from offscreen data
u
Filter by user; enter a username at the prompt
o
Filter by Other columns; COLUMN=pattern
=
Clear all column filters
h
Display an information dense cheat sheet of commands
W
Save configuration; applies current configuration on subsequent starts
Extended Topics
How to read graphical view of usage [Click To Expand]
In graphical mode CPU, RAM, & Swap are shown as:
