ubuntu下ping网络,每10s一次,并添加时间戳 ping -i 2 www.baidu.com | awk ‘{ print strftime("%H:%M:%S",systime()) $0"\t" }’ 其中’2’,是每隔2秒ping一次