Trace system calls of a process
Trace network and file syscalls of a running process
strace -f -e trace=network,file -p <pid>
- tool
- linux133 commands
- tags
- linuxdebugmonitoring
More linux commands
-
perf stat -e cycles,instructions,cache-misses -- sleep 5Hardware CPU counters during a 5-second window
-
lscpu | grep -E 'Model|Socket|Core|Thread|MHz'CPU model, socket/core/thread topology, and clock speed
-
dmidecode -t memory | grep -E 'Size|Speed|Locator|Type:'Physical DIMM slots: size, speed, type (requires root)
-
lspci -v | grep -A5 'VGA\|Ethernet\|NVMe'Network cards, GPUs, NVMe controllers with driver info
-
chattr +i /etc/resolv.conf && lsattr /etc/resolv.confPrevent any user (incl. root) from modifying the file