Forrest logo
back to the ltrace tool

ltrace:tldr:956d8

ltrace: Count library calls. Print a handy summary at the bottom.
$ ltrace -c ${path-to-program}
try on your machine

The command "ltrace -c ${path-to-program}" is used to execute a program and trace all the library calls made by that program. Here's a breakdown of the command:

  • "ltrace" is a command-line tool used to trace library calls made by a program.
  • "-c" option is used to count the number of times each library function is called.
  • "${path-to-program}" is the placeholder for the actual path to the program executable file. You need to replace it with the appropriate path to the program you want to trace.

When you run this command, it will execute the specified program and record all the library calls made by that program. Additionally, it will also count the number of times each library function is called and provide a summary of the function calls and the count at the end.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ltrace tool