Created
April 25, 2015 00:35
-
-
Save selbyk/fbd6188eaa6ff9258c6c to your computer and use it in GitHub Desktop.
How to create Linux 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
# Swap file created on DATE | |
/var/swapfile none swap sw 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
sudo dd if=/dev/zero of=/var/swapfile bs=1024 count=8388608 | |
sudo mkswap /var/swapfile | |
sudo swapon /var/swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment