Using regular file as swap space:
In case we run out of Swap space and we want a to quickly increase the space allocated for our swap, we could use a regular file for that purpose:
The size of the file is the "bs(block size) * count".
Then we will need to create the Swap space using the below command:
Then we need to activate our Swap space so it can be used:
When we are done using the swap file, we could deactivate it using the below command: