Current Article:

How to repeat command automatically in Linux?

How to repeat command automatically in Linux?

An example of watch every 5 seconds:

watch -n 5 ls -l

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