Watch difference & repeat command

watch -n 5 --difference ls -l # Watch every 5 seconds - (SO)

If you wish to have visual confirmation of changes, append --differences prior to the ls command.

Written on July 11, 2018, Last update on February 25, 2024
cli shell diff