1

How can I record all the modifications to directories, subdirectories and files made during one session (ie. during login time)?

For example, listing all the files/folders that were modified, and placing that information into a text file.

I have no idea how to do this, so even a little guidance would be useful...

TellMeWhy
  • 17,964
  • 41
  • 100
  • 142

1 Answers1

2

Use inotifywatch to collect statistics and redirect the output.

$ inotifywatch -r $HOME > /path/to/log

http://linux.die.net/man/1/inotifywatch

Or use inotifywait to get a change-by-change, file-by-file update.

$ inotifywait -mr $HOME > /path/to/log

http://linux.die.net/man/1/inotifywait

Ken Sharp
  • 1,086