Skip to content

Instantly share code, notes, and snippets.

@simbalinux

simbalinux/swapoff

Created Oct 1, 2018
Embed
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