Skip to content

Instantly share code, notes, and snippets.

@kalmik
kalmik / 00-swap.sh
Last active February 2, 2017 13:00 — forked from iuridiniz/00-swap.sh
Termbox.io scripts
#!/bin/sh
# curl -sL https://gist.githubusercontent.com/iuridiniz/8cc331f4cc22f266b6c2614bfefbd46e/raw/00-swap.sh | bash -
set -x -e
[ -e /swap ] && exit 1
# create swap file
dd if=/dev/zero of=/swap count=2048 bs=1M
# format the file