Skip to content

Instantly share code, notes, and snippets.

@Whistler092
Forked from indatawetrust/swap.sh
Created October 3, 2017 21:50
Show Gist options
  • Save Whistler092/daccf10c55affca00b1c35190318fe6c to your computer and use it in GitHub Desktop.
Save Whistler092/daccf10c55affca00b1c35190318fe6c to your computer and use it in GitHub Desktop.
swap
sudo swapon -s
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment