Programmer's Blog

Programmer's reference

Monthly Archives: November 2018

[linux] strace for system calls

//see system call for command
$> strace <command>      

//time difference
$> strace -T <command>

//only see specific system calls
$> strace -e trace=<write> <command>

//trace process
$> strace -q -e trace=process <command>

//trace file
$> strace -q -e trace=file <command>

//trace memory mapping, operations
$> strace -q -e trace=memory <command>

//output to file
$> strace <command> -o output.txt

//debug output
$> strace -d <command>