Skip to content

Instantly share code, notes, and snippets.

@ir4y
Last active August 31, 2018 09:44
Show Gist options
  • Save ir4y/063a8b1912c3ed6ef03bb463cb2fcffa to your computer and use it in GitHub Desktop.
Save ir4y/063a8b1912c3ed6ef03bb463cb2fcffa to your computer and use it in GitHub Desktop.
#!/bin/bash
fallocate -l 10G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
apt-get install htop
htop
## curl https://gist.githubusercontent.com/ir4y/063a8b1912c3ed6ef03bb463cb2fcffa/raw/8eff8079c3853a11534dfa94fb26acc72ccb12e1/add_swap.sh | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment