Skip to content

Instantly share code, notes, and snippets.

@pdostal
Created July 16, 2015 19:53
Show Gist options
  • Save pdostal/5405a2882d2bd4d8f6e3 to your computer and use it in GitHub Desktop.
Save pdostal/5405a2882d2bd4d8f6e3 to your computer and use it in GitHub Desktop.
SwapFile
dd if=/dev/zero of=/swapfile bs=1M count=512
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
/swapfile none swap defaults 0 0
swapoff -a
rm -f /swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment