linux watch command

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326218612&siteId=291194637