Created
October 15, 2023 20:44
-
-
Save soulaway/d0e18f3d86672f8c3a78b1bad76487d7 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
sudo apt update | |
# 16 x 128 = 2048 | |
sudo dd if=/dev/zero of=/swapfile bs=128M count=16 | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon -s | |
sudo nano /etc/fstab >> /swapfile swap swap defaults 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment