How to Use top Command to Check Swap Usage
in Linux
Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Goal:
This document outlines the steps required to use the top
command to check swap usage for processes.
Solution:
- Run the
top
command:$ sudo top
On your keyboard press thef
key and scroll down using the[down]
arrow key until you have selectedSWAP
Then press[Space]
to select it. (This should add a*
symbol in front of it.) - While still selecting
SWAP
Press the[right]
arrow key, which highlights the entireSWAP
line.
Using the[UP]
arrow key move it up to one of the first options (anywhere above “COMMAND”).
0