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