Skip to content

Instantly share code, notes, and snippets.

@multivac61
Created April 20, 2016 16:25
Show Gist options
  • Save multivac61/b2636797fa7edc09f48fd07c2d93b862 to your computer and use it in GitHub Desktop.
Save multivac61/b2636797fa7edc09f48fd07c2d93b862 to your computer and use it in GitHub Desktop.
# swampme.sh
# Create a 16GB swap space in current file system
dd if=/dev/zero of=/var/myswap bs=1M count=16384
mkswap /var/myswap
swapon /var/myswap
echo "/var/myswap swap swap defaults 0 0" >> /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment