Change Swap size on a running linux machine

linux, swap
Make all swap off sudo swapoff -a Resize the swapfile sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 Make swapfile usable sudo mkswap
Davide Andreazzini