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