I would like to get a list of open files in a process on os x (10.9.1). In Linux I was able to get this from /proc/PID/fd. However I\'m not sure how to get the
/proc/PID/fd
The clean and simple approach to inspect the current process (i.e. the equivalent of /proc/self/fd on Linux) is to use ls /dev/fd/:
ls /dev/fd/
e.g.
$ touch "file" $ exec 3<>file $ ls /dev/fd/ 0 1 2 3