Created
October 11, 2016 17:14
-
-
Save renatocassino/4d93c591b61109661d2fce00ccb6fc31 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
sudo dd if=/dev/zero of=/swapspace bs=1M count=4000 | |
sudo mkswap /swapspace | |
sudo swapon /swapspace | |
# To check | |
cat /proc/swaps | |
# Next, add the following line to /etc/fstab to activate the new swap at boot: | |
/swapspace none swap defaults 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment