Say you wanted to see whenever the content of a folder changes – what to do? Easy! Use the watch command:
watch 'ls -l'
This will clear the screen and output the contents of the command and update it every 2 seconds (clearing screen before each update). The watch command works for most scripts and commands
Tip: Using Tmux and the watch command together can help you create a really cool window with a bunch of “live” updated small windows
Tested on RHEL 3
0 Comments.