Trace system calls of a process linux
Trace network and file syscalls of a running process
strace -f -e trace=network,file -p <pid>
more linux
all 133 commands →
CPU performance counters
perf stat -e cycles,instructions,cache-misses -- sleep 5
Show CPU info
lscpu | grep -E 'Model|Socket|Core|Thread|MHz'
Show memory slots (DIMM)
dmidecode -t memory | grep -E 'Size|Speed|Locator|Type:'
List PCI devices
lspci -v | grep -A5 'VGA\|Ethernet\|NVMe'
Set immutable file attribute
chattr +i /etc/resolv.conf && lsattr /etc/resolv.conf