adierebel / Add Linux Swap Space

02 Mar 2018 at 11:29

sudo fallocate -l 1G /swapfile;sudo chmod 600 /swapfile;ls -lh /swapfile;sudo mkswap /swapfile;sudo swapon /swapfile;free -h;sudo cp /etc/fstab /etc/fstab.bak;echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

Comments (0)