Ubuntu – swapfile and swapspace

swap

I have made a swapfile following How to add swap space on ubuntu 16.04. And I have 4GB swap memory available. But in my root directory I see 2 file with names swapfile and swapspace , both occupying 4.3GB of space. I don't understand why 2 files are there. I guess there should be a swapfile but what is this swapsapce then?

Best Answer

You have 2 files probably because you created 2 files.

You can have a swap partition(recommended) or a swap file, or a combination of swap partitions and swap files.

Here you can get some more info:

Related Question