Original: http://man.linuxde.net/watch
-------------------------------------------------------------
The watch command executes the given command periodically, and the command output is displayed in full screen. watch is a very practical command, basically all Linux distributions come with this gadget, just like the name, watch can help you monitor the running result of a command, saving you from running it manually over and over again.
grammar
watch(options)(parameters)
Options
-n: Specifies the interval time (seconds) for the execution of the command; -d: Highlight differences in command output information; -t: Do not display the title.
parameter
Instructions: Instructions that need to be executed periodically.
example
#watch uptime
#watch -t uptime
#watch -d -n 1 netstat -ntlp
#watch -d ' ls -l | fgrep goface' //Monitor goface files #watch -t -differences=cumulative uptime #watch -n 60 from //Monitor mail #watch -n 1 " df -i;df" //Monitor the changes in the number of inodes and blocks on the disk