System Performance Assistant monitoring tool-Watch

Source: Internet
Author: User

Real-time monitoring commands, watch is a very useful command, can help you to monitor the results of a command in real time, save the manual run over and over again. The two most common options for this command are-D and-N, where-n indicates how many seconds interval is executed "command", and-D indicates where the highlight has changed.

Examples of usage:
1) Execute the WHO command once every second to monitor the status of the server's current user login
watch-d-N 1 ' who '

2) Watch can run multiple commands at the same time, and the commands are separated by semicolons. The following commands monitor disk usage and the status of files in the current directory, including additions, deletions, and updates to file modification dates.
watch-d-N 1 ' df-h; Ls-l '

System Performance Assistant monitoring tool-Watch

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.