Created
July 16, 2015 19:53
-
-
Save pdostal/5405a2882d2bd4d8f6e3 to your computer and use it in GitHub Desktop.
SwapFile
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
dd if=/dev/zero of=/swapfile bs=1M count=512 | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile |
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
/swapfile none swap defaults 0 0 |
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
swapoff -a | |
rm -f /swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment