Created
September 7, 2015 18:27
-
-
Save razorcd/a5d803b4b4abd55edfba to your computer and use it in GitHub Desktop.
Swap on ubuntu
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
Check free mem: | |
free -m | |
Add swap: | |
``` | |
sudo dd if=/dev/zero of=/swap bs=1M count=1024 | |
sudo mkswap /swap | |
sudo swapon /swap | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment