Skip to content

Instantly share code, notes, and snippets.

@delpinoconsulting
Created July 15, 2019 21:38
Show Gist options
  • Save delpinoconsulting/8e17419870ff189f58af1242f80ce344 to your computer and use it in GitHub Desktop.
Save delpinoconsulting/8e17419870ff189f58af1242f80ce344 to your computer and use it in GitHub Desktop.
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap sw 0 0" >> /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment