Created
February 9, 2017 05:13
-
-
Save marschhuynh/a6646b34b00f02f53fa2da4ec7ddb628 to your computer and use it in GitHub Desktop.
Create swap on linux
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 /bin/dd if=/dev/zero of=/swap bs=1M count=1024 | |
sudo /sbin/mkswap /swap | |
sudo chmod 600 /swap | |
sudo /sbin/swapon /swap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment