Last active
August 31, 2018 09:44
-
-
Save ir4y/063a8b1912c3ed6ef03bb463cb2fcffa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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