
Create/Remove/Resize Swap Space without Modifying Partitions on Linux
There are two ways to configure swap space on Linux, either by creating a swap partition or a swap file. The former is usually done on system installation. The latter creates a swap file on the existing file system, you can even vary its size on-the-fly or disable it anytime you wish.