Strace Examples

Trace the Execution of an Executable You can use strace command to trace the execution of any executable. The following example shows the output of strace for the Linux ls command. $ strace ls execve(“/bin/ls”, [“ls”], [/* 21 vars */]) = 0 brk(0) = 0x8c31000 access(“/etc/ld.so.nohwcap”, F_OK) = -1 ENOENT (No such file or directory)…

Read More