-------------------------------------打印根分区的使用情况-----------------------------------------------#!/bin/sh
#####3测试磁盘的使用率
###
A=`df -h |awk '$6=="/"{print $5}' |cut -f1 -d"%"`
if [ $A -gt 75 ];then
echo "please clear your disk!"
else if [ $A -lt 10 ];then
echo "your disk has full space! very good !"
else
echo "normal"
fi
echo $A
fi