Sample Header Ad - 728x90

dtrace/dtruss command to see what files a command tries to open?

7 votes
1 answer
4596 views
Is there a dtrace one liner that will run a command, and tell me all the files it tries to open? The Linux strace equivalent of what I'm trying to do is strace -e trace=file -f cat /etc/passwd > /dev/null I am on El Capitan
Asked by benhsu (285 rep)
Dec 7, 2017, 08:54 PM
Last activity: Dec 19, 2018, 12:03 AM