How to add swap space to Linux

Swap space acts as an extension of your computer’s physical memory (RAM) on Linux. When RAM becomes full, inactive data is temporarily moved to the swap space to free up memory for running programs. Here’s…