问题描述:

I have to log all the operation that will be do to a specific file(s).

The tool audit is exactly what I need, but it writes in the log file a lot of other unusefull information about other files (system files).

Is it possible with audit to have the output of a specific watch file (/user/home/specific_file) in a specific log file (/var/log/audit/specific_file)?

Other tool similar to audit?

Thanks!

网友答案:

inotifywait command can spit out lots of info about what's happening to files and/or directories.

相关阅读:
Top