Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create swapfile
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