Advanced Linux & Shell Scripting
Q90 / 100

What is the difference between "strace" and "ltrace", and what kind of debugging information does each provide?

Correct! Well done.

Incorrect.

The correct answer is A) "strace" traces system calls and signals made by a process, showing its interactions with the kernel, while "ltrace" traces calls to dynamic library functions — both help diagnose issues without modifying or recompiling the program

A

Correct Answer

"strace" traces system calls and signals made by a process, showing its interactions with the kernel, while "ltrace" traces calls to dynamic library functions — both help diagnose issues without modifying or recompiling the program

Explanation

Both are dynamic tracing tools useful for debugging: "strace" reveals the boundary between a program and the kernel (e.g. why a file open() is failing with a particular errno), while "ltrace" reveals calls into shared libraries like libc.

Progress
90/100