Forrest logo
back to context overview

strace

List of commands for strace:

  • strace:tldr:15eba strace: Start tracing a specific process by its PID.
    $ strace -p ${pid}
    try on your machine
    explain this command
  • strace:tldr:3cb2a strace: Start tracing file operations of a program.
    $ strace -e trace=file ${program}
    try on your machine
    explain this command
  • strace:tldr:e7110 strace: Trace a process and filter output by system call.
    $ strace -p ${pid} -e ${system_call_name}
    try on your machine
    explain this command
  • strace:tldr:f1af4 strace: Show the time spent in every system call.
    $ strace -p ${pid} -T
    try on your machine
    explain this command
  • strace:tldr:faf35 strace: Start tracing a program by executing it.
    $ strace ${program}
    try on your machine
    explain this command
back to context overview