Last active
August 8, 2020 17:00
-
-
Save LiberQuack/58eb3841a330e6dda6e5 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
SWAP_SIZE=2G | |
# See more: http://goo.gl/jN3NFO | |
sudo fallocate -l $SWAP_SIZE /swapfile | |
sudo chown root:root /swapfile | |
sudo chmod 0600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
echo '/swapfile none swap sw 0 0' | sudo tee --append /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment