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

后端 未结 8 2048

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

    I have a different suggestion, only for changes in the files, and record history changes

    use git

    cd /folder_to_monitor
    git init
    git add *
    git commit -m "first snapshot"
    

    so after you make the changes

    git diff
    

提交回复
热议问题