To check whether SWAP space is available on Ubuntu machine the below commands can be utilized
sudo swapon -show
If there is no output of the above commands then it means there is no SWAP available.
In case of SWAP available the commands shows below output.
The above screenshot shows the following information
- Location of Swap space
- Type of Swap space
- Total Size
- Utilized Size
- Priority set for Swap utilization