Skip to content

Instantly share code, notes, and snippets.

@stepansib
Created September 30, 2019 11:19
Show Gist options
  • Save stepansib/59a3ebbda4cb5946cd1054f0fe42976e to your computer and use it in GitHub Desktop.
Save stepansib/59a3ebbda4cb5946cd1054f0fe42976e to your computer and use it in GitHub Desktop.
#linux setup cache in ubuntu
sudo swapoff /swapfile
sudo rm /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 #create 4 GB swap
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