简单的内存监控脚本与磁盘监控脚本 练习 #! /bin/bash # 设置磁盘的阈值 disk_warn_val=1 use_disk=`df | grep "/$" | awk '{print $(NF-1)}' | cut -d% -f1` if [