Swap space can be a dedicated swap partition , a swap file or a combination of swap partitions and swap files. In this article, we will learn to find swap partition or swap file in the Linux Operating System.

Methods to find the swap partition / file

The given below are the mostly used methods to find the swap.

Reading Information From /proc/swaps File

cat /proc/swaps

Using command called swapon

swapon -s

See the below given screenshot for more understanding

swap
swap

Read Some More Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.