increase swap space ubuntu code example
Example 1: create swapfile ubuntu
sudo swapon --show
Example 2: how to increase the swap space in linux 7
# lvextend -l +100%FREE /dev/vg_main/lv_swap
Example 3: create swapfile ubuntu
sudo chmod 600 /swapfile