Linux Watch command-real-time monitoring of command run results

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.