Trace syscalls in Linux

Trace syscalls for a command:

strace touch /tmp/hi
View a summary of all syscalls:
strace -c touch /tmp/hi
Trace running command:
pidof httpd # get PID of running process
strace -p 4455 # attach to the process by passing PID