Strace Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian

Strace Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian

strace

Troubleshooting tool for tracing system calls.

Maintainer: Steve McIntyre



Section: utils

Install strace

  • Debian apt-get install strace Click to copy
  • Ubuntu apt-get install strace Click to copy
  • Alpine OS apk add strace Click to copy
  • Arch Linux pacman -S strace Click to copy
  • Kali Linux apt-get install strace Click to copy
  • CentOS yum install strace Click to copy
  • Fedora dnf install strace Click to copy
  • Raspbian apt-get install strace Click to copy

Troubleshooting tool for tracing system calls.

How to use strace?

Below are few example commands for strace that you can use in the terminal.

Start tracing a specific process by its PID:
strace -p pidClick to copy
Trace a process and filter output by system call:
strace -p pid -e system_call_nameClick to copy
Count time, calls, and errors for each system call and report a summary on program exit:
strace -p pid -cClick to copy
Show the time spent in every system call:
strace -p pid -TClick to copy
Start tracing a program by executing it:
strace programClick to copy
Start tracing file operations of a program:
strace -e trace=file programClick to copy
Installing strace command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of strace 2026 package in your OS.