#! /bin/bash fallocate -l 3G /swapfile && \ chmod 600 /swapfile && \ mkswap /swapfile && \ swapon /swapfile && \ swapon --show