- 博客(2)
- 收藏
- 关注
转载 shell脚本输出ip,mac
#!/bin/bash ip=`ip address |grep inet[^6]|grep -vE "127.0.0.1|docker"|sed -r 's# inet (.*)/[0-9].*#\1#'` mac=`ip address|grep eth[0-9] -A1|grep ...
2019-08-16 10:38:00 505
转载 linux shell 脚本监控磁盘
df -h | grep -E "/data|/factory" | tr "%" " " | awk '$5>70{print $1,$2,$4,$5"%",$6}' 输出例子: /dev/mmc111G 1.4G 86% /data 程序端可通过调用该脚本判断,当百分比大于某个...
2019-08-16 09:36:00 483
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人