Linux Watch command-real-time monitoring of running results of commands Watch is a very useful command, basic all Linux distributions with this gadget, like the name, watch can help you monitor the results of a command, save you over and over again manually run. Immediately after the watch you want to run the command, watch will help you repeat the operation, and the results are updated every time on the screen. The default watch repeats the command at 2s intervals, and you can specify the time interval with the-n parameter--and a useful parameter is-D, so that watch will help you highlight the area of change, which is more visible ~ctrl+c You can get out of it. Monitor the results of all commands you want, such as tail a log file, ls monitoring the size of a file changes, see your imagination ~freebsd and Linux under the different watch command under Linux, Watch is the periodic execution of the next program and displays the execution results in full screen. -d,–differences[=cumulative] Highlight change-n,–interval=<seconds> period (seconds) such as: Watch-n 1-d netstat- Ant while the watch command under FreeBSD is to see what other users are doing, watch allows you to peek at what other terminal are doing and the command can only be used by Superuser. How to run Watch:[[email protected] conf]# whoroot ttyp0 Oct 2 21:48 (192.168.x.x) Root ttyp1 Oct 2 22:25 (192.168.x.x) Xxhui ttyp3 Oct
Linux Watch command-real-time monitoring of command run results