how to enable swap space in ubuntu code example
Example 1: create swapfile ubuntu
sudo fallocate -l 1G /swapfile
Example 2: create swapfile ubuntu
sudo chmod 600 /swapfile
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile