Creating swap files faster

sudo fallocate -l 100G /path/to/swap.img
sudo chmod 0600 /path/to/swap.img
sudo mkswap /path/to/swap.img

Leave a Reply

Your email address will not be published. Required fields are marked *