Last active
March 7, 2023 12:11
-
-
Save stepanmas/bf5b7d18b5aa7503c939cbaca6c582ce 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
fallocate -l 3G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
dd if=/dev/zero of=/swapfile bs=1G count=16 | |
echo -e "/swapfile none swap sw 0 0 \n" >> /etc/fstab | |
swapon /swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment