像Windows下的ping ip -t
可以不断执行ping这一命令来查看target是否在线,Linux也可以做同样的事情:
watch -n 1 "cat opkg.conf" //每隔一秒查看一次opkg.conf文件
-n, –interval= 指定时间间隔(秒),默认是2s
-t ,-no-title 会关闭watch命令在顶部的时间间隔
-d, –differences[=cumulative] 高亮显示变动,-d=cumulative选项会把变动过的地方(不管最近的那次有没有变动)都高亮显示出来.