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!



Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 3.94.21.209
To prevent spam please submit by clicking the kitten: