Gul*_*har 3 linux installation filesystemwatcher
在 Linux 上,我需要知道在从源代码编译和安装应用程序后添加/修改/移动/删除了哪些文件,即。命令行,Linux 相当于 venerale InCtrl5。
是否有执行此操作的实用程序,或一组我可以运行并显示更改的命令?
谢谢你。
编辑:以下命令还可以,但我不需要知道发生更改或更新“./..”的行号:
# ls -aR /tmp > b4.txt
# touch /tmp/test.txt
# ls -aR /tmp > after.txt
# diff -u b4.txt after.txt
Run Code Online (Sandbox Code Playgroud)
如果您只需要知道触摸了哪些文件,那么您可以使用find:
touch /tmp/MARK
# install application here
find / -newercm /tmp/MARK
Run Code Online (Sandbox Code Playgroud)
这将显示自您触摸后其内容或元数据已更改的所有文件/tmp/MARK(包括新添加的文件)。
| 归档时间: |
|
| 查看次数: |
1331 次 |
| 最近记录: |