Watching changes

Linux has a cool utility called watch that lets you run the same command every X seconds and watch the output. I've used watch to monitor a raid array being built:

watch cat /proc/mdstat

Or the health of my NTP daemon

watch ntpq -pn

I just found out today that watch has a --differences (or -d) option, to highlight the differences between each successive run. Very handy!

Leave A Reply
All content licensed under the Creative Commons License