Last active
February 8, 2024 01:06
-
-
Save carlesloriente/db66b16449cfc54b883e347686673878 to your computer and use it in GitHub Desktop.
Create a linux swap file
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 /bin/dd if=/dev/zero of=/var/swap.1 bs=2M count=2048 | |
sudo /sbin/mkswap /var/swap.1 | |
sudo /sbin/swapon /var/swap.1 | |
sudo chmod 0600 /var/swap.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.notesoncloudcomputing.com/linux/swap/2019/12/26/create-swap-file/