A swap file is a form of virtual memory, similar to random access memory (RAM) and cache on a processor in which a file swap can be used to store temporary data. It’s the slowest form of memory, located on an HDD or SSD, and is reserved by the Linux system for use when the OS runs out of RAM. By configuring your Linux installation to use a swap file, you can technically use more RAM than your PC has physically installed.