Created
February 9, 2023 20:31
-
-
Save mbaynton/73e9a8d4465b01daf644be4d009a26b4 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
#!/bin/bash | |
set -euo pipefail | |
dd if=/dev/zero of=/swapfile2 bs=1M count=2560 | |
chmod 0600 /swapfile2 | |
mkswap /swapfile2 | |
swapon /swapfile2 | |
swapoff /swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment