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

How to check the file system has swap file or not?

After checking that not have a swap file enabled on the virtual server, we can check how much space we have on the server with the df command. The swap file will take 256MB— since we are only using up 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