Skip to content

Instantly share code, notes, and snippets.

@simbalinux
Created October 1, 2018 19:50
Show Gist options
  • Save simbalinux/275c6cb18b875fbf79c0760aa4911cbc to your computer and use it in GitHub Desktop.
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