Linux一键增加swap空间脚本

发布于 2021-02-09

#!/bin/bash echo -e "\033[33m Your current swap is \033[0m" free -h mkdir /SwapDir cd /SwapDir dd if=/dev/zero of=/SwapDir/swap bs=1M count=512 #这里增加的空间是512MB chmod 0600 swap mks ...