Created
June 26, 2018 10:51
-
-
Save emacsist/2b130555143ad25af2d88df2d8be8d48 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
#!/usr/bin/env bash | |
SWAP_FILE="${HOME}/swap.file" | |
N_MB=10240 | |
dd if=/dev/zero of="${SWAP_FILE}" bs=1M count="${N_MB}" | |
mkswap "${SWAP_FILE}" | |
swapon "${SWAP_FILE}" | |
#swapoff "${SWAP_FILE}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment