Last active
March 16, 2017 15:40
-
-
Save jamiecounsell/bf360b1d8e75b3e09b415bf361cec6f5 to your computer and use it in GitHub Desktop.
Create 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
SIZE=4; sudo dd if=/dev/zero of=/swapfile bs=1024 count=`expr $SIZE \* 1024000` && sudo mkswap /swapfile && sudo sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab' && sudo chmod 600 /swapfile && sudo swapon /swapfile; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment