Skip to content

Instantly share code, notes, and snippets.

@harmy
Last active August 12, 2020 07:26
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 harmy/baf1a865e40a0259e8962ab07a3931e5 to your computer and use it in GitHub Desktop.
Save harmy/baf1a865e40a0259e8962ab07a3931e5 to your computer and use it in GitHub Desktop.
add swap to ubuntu server
sudo dd if=/dev/zero of=/swap bs=1G count=16
sudo chmod 0600 /swap
sudo mkswap -f /swap
sudo swapon /swap
echo "sudo vim /etc/fstab"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment