#! /bin/sh while [ 2 > 1 ] do echo `date` >> recode.txt df -h >> recode.txt sleep 5 done 转载于:https://www.cnblogs.com/zphj1987/p/3935958.html