Skip to content

Instantly share code, notes, and snippets.

@simbalinux
Created October 1, 2018 19:50
  • 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 simbalinux/275c6cb18b875fbf79c0760aa4911cbc to your computer and use it in GitHub Desktop.
Turn off swap
#!/usr/bin/env bash
# turn off swap
swapoff -a
sed -i '/ swap / s/^/#/' /etc/fstab
# reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment