Last active
February 4, 2019 16:11
-
-
Save kissarat/f75df98ecc00f3becb7f14d6e39f9ee4 to your computer and use it in GitHub Desktop.
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
FILENAME=/tmp/swap-$(date +%s) | |
dd if=/dev/zero of=${FILENAME} bs=1M count=$1 | |
mkswap ${FILENAME} | |
chmod 600 ${FILENAME} | |
swapon ${FILENAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment