sudo dd if=/dev/zero of=/swap1 bs=1k count=1M
sudo mkswap /swap1
sudo chmod 600 /swap1
sudo swapon /swap1
# Make it permanent
echo '/swap1 none swap sw 0 0' | sudo tee -a /etc/fstab
Created
January 30, 2020 15:50
-
-
Save peteristhegreat/00624395235e982ad4474fa43e0a2653 to your computer and use it in GitHub Desktop.
Swap file magic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment