Activate swap space.
Section: Storage Partitions and LVM
Enable swap device or file
bash
bash
sudo swapon /swapfileExplanation
Useful when adding or restoring swap.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Storage Partitions and LVM