how to increase swap space in ubuntu 20.04 code example Example: how to increase the swap space in linux 7 # lvextend -l +100%FREE /dev/vg_main/lv_swap