User:Johannbg/QA/Strace

Strace
Strace is a useful diagnostic, instructional, and debugging tool. System administrators, diagnosticians and trouble-shooters will find it invaluable for solving problems with programs for which the source is not readily available since they do not need to be recompiled in order to trace them. Students, hackers and the overly-curious will find that a great deal can be learned about a system and its system calls by tracing even ordinary programs. And programmers will find that since system calls and signals are events that happen at the user/kernel interface, a close examination of this boundary is very useful for bug isolation, sanity checking and attempting to capture race conditions.

Foo

 * 1) TODO explain what ouput mean

Example Usage
To strace a command run.

strace

To strace a command and put the output to a file run.

strace -o /tmp/strace- -ouput.txt

To strace a running process id run.

strace -p 

To strace a running process id and put the output to a file run.

strace -o /tmp/strace- -ouput.txt -p 