Skip to content

Instantly share code, notes, and snippets.

@rbartoli
Created March 29, 2015 18:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rbartoli/145f71b6b13398f44295 to your computer and use it in GitHub Desktop.
Linux: create swap file
dd if=/dev/zero of=/swapfile bs=1M count=1024
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