Created
October 1, 2018 19:50
-
-
Save simbalinux/275c6cb18b875fbf79c0760aa4911cbc to your computer and use it in GitHub Desktop.
Turn off swap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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