System Grab Bag

View all TLDR pages from Linux (or from all pages)

ltrace

Display dynamic library calls of a process. More information: https://manned.org/ltrace.
  • Print (trace) library calls of a program binary:
    ltrace ./{{program}}
  • Count library calls. Print a handy summary at the bottom:
    ltrace -c {{path/to/program}}
  • Trace calls to malloc and free, omit those done by libc:
    ltrace -e [email protected]* {{path/to/program}}
  • Write to file instead of terminal:
    ltrace -o {{file}} {{path/to/program}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.