Skip to content

Instantly share code, notes, and snippets.

@raphaunix
Created November 7, 2017 01:53
Show Gist options
  • Save raphaunix/1adbcf7de703ae49ff6c4b4543264511 to your computer and use it in GitHub Desktop.
Save raphaunix/1adbcf7de703ae49ff6c4b4543264511 to your computer and use it in GitHub Desktop.
fallocate -l 4G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && swapon -s && printf "%s\n" "/swapfile none swap sw 0 0" >> /etc/fstab && cat /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment