Skip to content

Instantly share code, notes, and snippets.

@carlesloriente
Last active February 8, 2024 01:06
Show Gist options
  • Save carlesloriente/db66b16449cfc54b883e347686673878 to your computer and use it in GitHub Desktop.
Save carlesloriente/db66b16449cfc54b883e347686673878 to your computer and use it in GitHub Desktop.
Create a linux swap file
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
@carlesloriente
Copy link
Author

carlesloriente commented Dec 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment