Home Knowledge Base Fantacy Script & Apps How to check the file system has swap or not?

How to check the file system has swap or not?

After checking no swap files are enabled on the virtual server, You  can check how much space server has with the df command. The swap file will take 256MB— as we are only using about 8% of the /dev/sda, we can proceed.

df

Filesystem     1K-blocks          Used         Available       Use%      Mounted on

/dev/sda        20907056       1437188     18421292         8%            /

udev               121588                     4            121584             1%             /dev

tmpfs              49752                    208            49544            1%            /run

none                5120                       0                5120             0%            /run/lock

none              124372                     0              124372          0%           /run/shm