Using the command dd you can create swap file.
dd - convert and copy a file
First of all check the current swap size using the command ‘free’
$ free
Output
total used free shared buffers […]

Continue reading " Creating a swap file "