Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of strace -feopen < command > on mac os X

People also ask

Does Mac OS have strace?

OSX doesn't have strace, but has its equivalent dtrace which originates from Solaris and I believe it has replaced OSX ktrace, truss etc. commands since OSX 10.5 Leopard.

Is macOS UNIX based?

Mac OS X, in turn, gave rise to the mobile iOS. Both Apple operating systems still include code files tagged with the NeXt name -- and both are directly descended from a version of UNIX called the Berkeley System Distribution, or BSD, created at the University of California, Berkeley in 1977.


I suppose you meant strace -fetrace=open?

dtruss -f -t open python myfile.py