Skip to content

Instantly share code, notes, and snippets.

@selbyk
Created April 25, 2015 00:35
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 selbyk/fbd6188eaa6ff9258c6c to your computer and use it in GitHub Desktop.
Save selbyk/fbd6188eaa6ff9258c6c to your computer and use it in GitHub Desktop.
How to create Linux swapfile
# Swap file created on DATE
/var/swapfile none swap sw 0 0
sudo dd if=/dev/zero of=/var/swapfile bs=1024 count=8388608
sudo mkswap /var/swapfile
sudo swapon /var/swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment