📅  最后修改于: 2022-03-11 14:51:25.291000             🧑  作者: Mango
size=$(df -kh | awk '$6 == "/var" {print $5}')
size=${size%"%"}
if (( size < 80 )); then
echo "/var is less than 80 % full"
fi