Using the watch Command

The watch command allows you to continuously run any Linux command in fullscreen. It also allows for changing the timing between the command runs as well as highlighting the differences between each run.


Use the -n option to set the interval in seconds between each running of the command. (-n0 sets the interval to .1 seconds, which is the fastest available refresh rate; the default interval is 2 seconds and the longest interval is 4294 seconds).

Use the --differences option to highlight the changes between command runs.


cl-rctl ip route

This command displays the Cumulus Linux routing table.

watch -n0 --differences sudo cl-rctl ip route
watch command for cl-rctl ip route

This command displays interface packet counters.

watch -n0 --differences sudo ip -s link show up
watch command for ip dash s link show