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

后端 未结 8 2049

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:04

    inotify is the best option when you have many subdirectories but if not I am used to using this command below:

    watch -d find <>

提交回复
热议问题