当前位置: 动力学知识库 > 问答 > 编程问答 >

Logging system activity in linux files

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: