Mac OS X, Unix Mac OS X: lsof December 22, 2007 lsof is a command that can be used to list all the open files. You can use grep to narrow down the listing to only those that match a certain string.