Created
February 24, 2021 18:17
-
-
Save TheSalarKhan/833936e580f0a70bd8db4b3b3419198d 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 swapon --show | |
sudo fallocate -l 1G /swapfile | |
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576 | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo echo "/swapfile swap swap defaults 0 0" >> /etc/fstab | |
sudo swapon --show |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment