echo "The system $Folder disk space is $DiskSpace%"
echo "The system $Folder disk space is $DiskSpace%" >> space.txt
if [ $DiskSpace -gt 90 ]
then
{
echo "The usage of system disk($Folder) is larger than 90%"
echo "The usage of system disk($Folder) is larger than 90%" >> space.txt
}
else
{
echo "The usage of system disk($Folder) is normal"
echo "The usage of system disk($Folder) is normal" >> space.txt
}
fi
}
CheckDiskSpc /boot
tar cvf - /data/shell/space.txt > /data/shell/space.tar
rm space.txt
date命令学习
Linux下date命令用法
date [OPTION]… [+FORMAT]
date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]