๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout 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

Logrotate
A utility that manages automatic rotation, compression, and removal of log files to prevent disk space exhaustion.
Nftables
The modern Linux packet filtering framework that replaces iptables with a unified, more efficient rule-processing architecture.
Xargs
A command that builds and executes commands from standard input, useful for processing lists of items.
Sysfs (/sys)
A virtual filesystem that exports information about kernel subsystems, hardware devices, and device drivers in a structured hierarchy.
Systemctl
The primary command for managing systemd services, including starting, stopping, enabling, and checking service status.
Ulimit
A command that sets or displays resource limits for user processes, such as maximum open files or memory usage.
View All Linux Terms โ†’