Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trankimvu/4cab2b9c96fb8725bcd4385c69ff38bf to your computer and use it in GitHub Desktop.
Save trankimvu/4cab2b9c96fb8725bcd4385c69ff38bf to your computer and use it in GitHub Desktop.
# Short script to quick create swapfile on ubuntu
sudo fallocate -l 4G /swapfile && \
sudo chmod 600 /swapfile && \
sudo mkswap /swapfile && \
sudo swapon /swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment