🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Linux Advanced

What is Strace?

A diagnostic tool that traces system calls and signals made by a process, useful for debugging and performance analysis.

Strace intercepts and records system calls (file operations, network calls, memory allocation) made by a process. Usage: strace -p PID (attach to running process) or strace command (trace from start).

Useful flags include -e trace=network (filter network calls), -c (summary statistics), -f (follow forks), and -t (timestamps). Strace is invaluable for debugging permission issues, missing files, and understanding program behavior.

Related Terms

Disk Quota
A system for limiting the amount of disk space or number of files that individual users or groups can consume on a filesystem.
Curl
A versatile command-line tool for transferring data using various network protocols, commonly used for API testing.
Systemd Timer
A systemd unit that triggers services on a schedule or at specific events, serving as a modern alternative to cron jobs.
Nftables
The modern Linux packet filtering framework that replaces iptables with a unified, more efficient rule-processing architecture.
Chroot
A mechanism that changes the apparent root directory for a process and its children, creating an isolated filesystem view.
Procfs (/proc)
A virtual filesystem in Linux that provides an interface to kernel data structures, exposing process and system information as files.
View All Linux Terms →