if command -v fallocate > /dev/null 2>&1; thenfallocate -l 1G /swapfileelsedd if=/dev/zero of=/swapfile bs=1M count=1024fimkswap /swapfilechmod 600 /swapfileswapon /swapfile