0

I'm trying to understand what files or build artifacts are created by the build system of a C++ project.

There are 3 steps to building this project:

  • ./autogen.sh
  • ./configure
  • make

Is there a way I could compare outputs of the tree command between running each command? Or something along these lines ...

3
  • If you store project in Git repository you could use git ls-files -o instead of tree. That would only find new files. – Arkadiusz Drabczyk Dec 16 '20 at 20:56
  • @Quasímodo No. Command line. Perhaps I should learn a GUI! – justinmoon Dec 16 '20 at 21:12
  • @ArkadiuszDrabczyk: Thanks! That's pretty close to what I want. I can diff that. – justinmoon Dec 16 '20 at 21:13
2
  • chkinstall
  • strace -e file -fF command
  • sudo inotifywait -e modify -e attrib -e move -e delete -e close_write -m -r /

The second command could produce a ton of output if you have any other applications running. You could switch to single user mode to get rid of the noise.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.