Created
January 31, 2024 09:08
-
-
Save vshmoylov/05ee2c27b9955cd7a30f232e41eaa9b4 to your computer and use it in GitHub Desktop.
Create and enable swap
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 | |
# should be run as root | |
fallocate -l 1G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment