I'd like to know how to use strace to trace system calls in my C program and how to use it for debugging my code.
3 Answers
Strace is great to see system calls. Once you understand how it works, be sure to check out ltrace as well, which shows calls to dynamically linked libraries.
Together, they give you a very good understanding of what any given program is doing (unless statically linked, of course).