How to monitor a complete directory tree for changes in Linux?

后端 未结 8 2045

How can I monitor a whole directory tree for changes in Linux (ext3 file system)?

Currently the directory contains about half a million files

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 10:24

    $ inotifywait -m -r /path/to/your/directory
    

    This command is enough to watch the directory recursively for all events such as access, open, create, delete ...

提交回复
热议问题