摘要: ping检查hosts 网络 for i in `awk '{print $1}' /etc/hosts|grep -v '#'`;do ping $i -c2 -w2 -i 0.2>/dev/null&&echo $i is up||echo$i is down;done awk '{print 阅读全文
posted @ 2021-12-29 18:00 杨今朝 阅读(48) 评论(0) 推荐(0) 编辑