Skip to content

Instantly share code, notes, and snippets.

@mikedamm
Created May 19, 2020 22:53
Show Gist options
  • Save mikedamm/046507608e14928399733b48e34b47b6 to your computer and use it in GitHub Desktop.
Save mikedamm/046507608e14928399733b48e34b47b6 to your computer and use it in GitHub Desktop.
fallocate -l 8G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment