Skip to content

Instantly share code, notes, and snippets.

@bttf
Created March 13, 2016 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bttf/1a33a8163a15cbcf1003 to your computer and use it in GitHub Desktop.
Save bttf/1a33a8163a15cbcf1003 to your computer and use it in GitHub Desktop.
add swap - ubuntu 14.04
#!/bin/bash
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment