Add a swapfile to a Linux box (Ubuntu
1. Paste into a terminal, it adds a 8G swapfile to the VM/Machine.
sudo fallocate -l 8G /swapfile8G sudo mkswap /swapfile8G echo '/swapfile8G none swap sw 0 0' | sudo tee -a /etc/fstab sudo swapon -a free -h cat /proc/sys/vm/swappiness
...