strace¶
Use strace (stack trace) to track the system calls that a program makes.
This is typically shown as C code on a Linux system, and shows the system call itself
and its output.
strace Usage¶
To see each of the syscalls a command makes, you can run the command directly after
the strace/strace [opts]:
strace call, tracing a mkdir call.It will only show the system calls made by the
mkdir process, not any child
processes it may spawn.
If you need to see the strace of the child processes, you can also use the -f or
-ff options.
You can also specify the maximum string size with -s (default is 32).