Search This Blog

2014-03-16

Watch Command - Updating Output

The watch command can be used to continuously display the output of any given command

For example, if I want a continuous readout of my CPU temperature of my server:
watch 'sensors | grep "Core "'
The above will show the following output and update the view on the temperature every 2 seconds

Core 0:      +19.0°C  (high = +85.0°C, crit = +95.0°C)                          
Core 1:      +11.0°C  (high = +85.0°C, crit = +95.0°C)                          
Core 9:      +18.0°C  (high = +85.0°C, crit = +95.0°C)                          
Core 10:     +21.0°C  (high = +85.0°C, crit = +95.0°C)                                                                   

No comments:

Post a Comment