Skip to content

Instantly share code, notes, and snippets.

@nooitaf
Last active May 27, 2016 15:10
Show Gist options
  • Save nooitaf/3b4456718d7f6867642542e0b3c19a7f to your computer and use it in GitHub Desktop.
Save nooitaf/3b4456718d7f6867642542e0b3c19a7f to your computer and use it in GitHub Desktop.
Swap space
#!/bin/bash
free
dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
mkswap /var/swap.img
swapon /var/swap.img
free
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment