Created
August 13, 2013 18:45
-
-
Save luiseduardobrito/6224321 to your computer and use it in GitHub Desktop.
Create temporary swapfile in Ubuntu From http://blog.goyalankit.com/2010/09/create-temporary-swap-file-in-ubuntu.html
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
#!/bin/bash | |
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024 | |
sudo mkswap /swapfile | |
# NOTE: This swap memory will not be there when you reboot your pc. | |
# To retain it, you can make a entry in /etc/fstab file or again | |
# run the commands from 3rd. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment