How to find swap partition or file in linux
In this post I will share some commands to find swap partition or file in linux.
I expect you already know about swap, if not click on this link for more understanding
Swap space can be a dedicated swap partition , a swap file, or a combination of swap partitions and swap files.
So here the question comes how will you find the swap space is in partition or file or both.
The given below command is the answer of the above question
cat /proc/swaps
OR
swapon -s
See the below given screenshot for more understanding