Skip to content

Instantly share code, notes, and snippets.

Created Oct 1, 2018
What would you like to do?
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