Skip to content

Instantly share code, notes, and snippets.

@sajattack
Last active October 15, 2018 06:25
Show Gist options
  • Save sajattack/afddbbd5af9b51c206f0805798cb931a to your computer and use it in GitHub Desktop.
Save sajattack/afddbbd5af9b51c206f0805798cb931a to your computer and use it in GitHub Desktop.
fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment