Skip to content

Instantly share code, notes, and snippets.

@jamiecounsell
Last active March 16, 2017 15:40
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 jamiecounsell/bf360b1d8e75b3e09b415bf361cec6f5 to your computer and use it in GitHub Desktop.
Save jamiecounsell/bf360b1d8e75b3e09b415bf361cec6f5 to your computer and use it in GitHub Desktop.
Create swapfile
SIZE=4; sudo dd if=/dev/zero of=/swapfile bs=1024 count=`expr $SIZE \* 1024000` && sudo mkswap /swapfile && sudo sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab' && sudo chmod 600 /swapfile && sudo swapon /swapfile;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment