Posted on 2019-09-072022-07-27 swapfile echo "create a 1GB swapfile"fallocate -l 1G /swapfilechmod 600 /swapfilemkswap /swapfileswapon /swapfileecho "/swapfile swap swap defaults 0 0" >> /etc/fstab Share this:Print