
我正在尋找一種方法來追蹤程式安裝程式(InstallAnywhere)使用了哪些檔案。我無法使用,lsof
因為據我所知它適用於活動進程,我想要一個可以像這樣工作的工具:
Time:
--------------------------------------------------------
Tool start here:
|-------------------------------------------|
Installer starts here:
|-----------------------------------|
答案1
您也可以考慮在 strace 下呼叫您的命令:
strace -f -e trace=file -o /path/to/logfile your_command
logfile
your_command
將包含由或其子程序執行的每個與檔案相關的操作。
答案2
好像檢查安裝就是你想要的。