ltrace do?trace the library (and optionally system) calls a program makes.
▸ Explain your own ltrace command →$ ltrace -f -e malloc+free ./prog
$ ltrace -p 1234 -c
| -f | also trace child processes |
| -e | filter which library calls to trace |
| -p | attach to and trace an already-running PID |
| -o | write the trace to a file instead of standard error |
| -c | summarize call counts and time on exit |
| -S | also display system calls |
| -s | set the maximum length of printed strings |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.