How do I detect changes (additions, deletions, modifications) to a directory tree without filesystem support (like btrfs snapshots)?

I want to list all changes to a specific directory tree on an ext2 partition before and after running a certain program on Linux 3.18.5.

  • 2
    You could use inotify during the execution time of the application. You can select the file system events you're interested in and log those. – Marco Mar 17 '15 at 10:04
  • Simplest solution - copy directory and "diff" it. More sophisticated solution - some middle-ware between application and filesystem (like inotify). The answer depends on what information you can gather. – kravemir Mar 17 '15 at 11:42

Your Answer


Browse other questions tagged or ask your own question.