-
-
Save labiak/fc18ce50159d751b0ab6bf8b55b89480 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