How To Add Swap Space on Ubuntu

Learn how to add swap space on Ubuntu using a swap file, with step-by-step commands, swappiness tuning, troubleshooting, and best practices.