Different commands can be used to check the swap space size:
swapon -s
htop
To access RAM usage and Swap space you can run thefree -mcommand.
To view the swap space, one of the other methods is to refer to the /proc/swaps file.