Swap
Swap on Linux
TLDR
Goal: add a 2 GB swap file as a safety net against running out of memory, used only when RAM runs low.
Step: Check
Commands:
swapon --show
free -h
Purpose: Confirm there's no swap yet
────────────────────────────────────────
Step: 2.1
Command: fallocate...