How it works

When the strace command is used on any other Linux command or program, it traces its interaction with the Linux kernel.

When the -c option is used with strace, we get a statistical summary, and if the-t option is used, we get a timestamp preceding each output line.

Using the -e option, we can see a specific call of program execution, like open system calls. By using the -o option, we write the output of the strace command to a file.