Skip to content

Instantly share code, notes, and snippets.

@luiseduardobrito
Created August 13, 2013 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luiseduardobrito/6224321 to your computer and use it in GitHub Desktop.
Save luiseduardobrito/6224321 to your computer and use it in GitHub Desktop.
#!/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