I want to monitor file/files changes during the changing any settings. I can monitor changes by using dconf watch / but this command just monitoring path for settings and I want its file not schema path. Is there any tool/command to monitor file changes?

I only want /path/to/filename from result of monitoring.

For example I want to know which file changes after changing my brightness setting.

up vote 10 down vote accepted

You can use the command line tool inotifywatch from the package inotify-tools.

If you want to monitor all files in you home directory for change, use this command:

inotifywatch -r $HOME

Probably the command will raise an error because the upper limit of watches is reached. You can change those with

sudo sh -c 'echo 16384 > /proc/sys/fs/inotify/max_user_watches'

(adjust the number accordingly)

  • 1
    I use find ~/ ! -path "*mozilla*" ! -path "*google-chrome*" ! -path "*cache*" ! -path "*dropbox*" -mmin -5 -type f -ls to find file changes in my home folder in the last 5 min (excluding folders of no interest). But find will take a long time if you want to see which file changes in system files. Perhaps you can first use Daniel's command to get as far as /path/to/ and then use the command I gave appropriately modified to point find in the right path. – DK Bose Oct 31 '14 at 13:13

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.