Skip to content

Instantly share code, notes, and snippets.

@jaredmichaelwilliams
Last active March 24, 2018 09:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jaredmichaelwilliams/cd517badc13e08adbacf to your computer and use it in GitHub Desktop.
Save jaredmichaelwilliams/cd517badc13e08adbacf to your computer and use it in GitHub Desktop.
Quick Add 5GB Swap File, and add to fstab
dd if=/dev/zero of=/mnt/swap bs=1024 count=5242880;
mkswap /mnt/swap;
chown root:root /mnt/swap ;
chmod 0600 /mnt/swap ;
swapon /mnt/swap;
echo "/mnt/swap 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