# truss -dfo /tmp/truss.log some-command-we-are-interested-in [command-args ...] # truss -dpo /tmp/truss.log some-pid [some-other-pid ...]
Switch | Meaning |
---|---|
-d | Prefix output with date-time information |
-f | attempt to follow forks |
-o file | dump truss output to file instead of stderr |
-c | collect summary information rather than displaying as program runs |
-p | argument is a list of already running pids to connect to instead of a command to run |