Monitor directory for file changes

This entry is recently updated at June 13, 2017

Goal

Perform watching on a directory and show any changes to the directories or files, until we cancel it.


Note: Press CTRL+C to stop

Commands

inotifywait -m -r /etc

The inotifywait command allows for recursive watching a directory for changes and repeats until it is cancelled by the system administrator.

What do you think, was this useful?

Yes!

Share with friends:
Share on Twitter