Linux watch is a monitoring command, used to monitor the execution of the command, and periodically execute the program, is a more common command, the following small series will give you a detailed introduction to the use of the Linux watch command.
1. Command format:
watch[parameter][command]
2. Command function:
The output of the command can be output to the standard output device, which is mostly used to execute the command/timed execution command periodically
3. Command parameters:
-n or --interval watch By default, the program runs every 2 seconds. You can use -n or -interval to specify the interval time.
-d or --differences The watch will highlight the changed area with the -d or --differences option. The -d=cumulative option highlights the changed places (regardless of the recent changes).
-t or -no-title will turn off the watch command at the top of the interval, command, and current time output.
-h, --help View help documentation
4. Example:
Instance 1:
Command: Highlight the number of network links every second.
The code is as follows:
watch - n 1 -d netstat -ant
Description:
Other operations:
Switch terminal: Ctrl+x
Exit watch:Ctrl+g
Instance 2: Highlighting changes in the number of http links every second
Command:
The code is as follows:
watch -n 1 -d &lsquo ;pstree
There are two different exchange methods in Linux system, namely NBMA and BMA. Dont look at the two
Whether you use Win system or Linux system, you can use Live USB to try out various distributions of
Any computer running for a long time will be hot, Ubuntu system computer is no exce
As a friend of the initial use of CentOS system, installing EVA QQ is not as simple
What should I do if the Ubuntu login screen resolution is too high?
Steps to install EVA QQ on CentOS
Linux network card binding setting method
Linux ln command operation guide
Handling of the Segmentation fault error in Linux programming
Ubuntu how to choose IPv4 or IPv6 channel when using apt-get update
Summary of the usage of the Linux command less command
How Linux uses shell commands to detect PHP Trojans
How does the Linux system simulate the get or post request of Http?
[Figure] Microsoft WinHEC2015 Conference: Live Live
How to disable USB port in Vista system
Boot automatically login settings
After upgrading Win10 preview, I will prompt: What should I do if WSClient.dll is missing?
How does the Win10 system enable hidden notification centers?
Ingeniously set up two ways for Win7 to access only the specified webpages.
Win7 system broadband connection prompt error 738 solution
Sogou input method to see the typing speed of the small coup