Last active
August 16, 2019 02:20
-
-
Save codebymark/0f5c3c1cf06d66a02b690380cd0dc342 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo su | |
dd if=/dev/zero of=/swapfile bs=1M count=2000 | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
swapon -s | |
nano /etc/fstab | |
Add this text to the bottom: | |
/swapfile swap swap defaults 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment