Comments on Linux watch Command Tutorial for Beginners (5 Examples)

Sometimes, while working on the Linux command line, you might want to execute a command repeatedly so as to track any change in output. Well, you'll be happy to know there exists a command line utility that lets you do this. The tool in question is Watch, and in this tutorial, we will discuss some of its basic features using some easy to understand examples.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: george

If you want to watch realtime the cpu clock speed (modern cpus change cpu clock speed all the time according to workloads):

 

watch grep \"cpu MHz\" /proc/cpuinfo

By: Roland

This fills the typical terminal window:

alias watch-time='watch -t -n 1 "date +%A%n%D%n%Z%t%t%T|figlet -k"'

 

By: Hussein

I want to be able to see more lines when exacuting watch command. how can I do so?