ph7spot.com — lsof is one of the most powerful UNIX command (also available on Mac OS X). It is invaluable when it comes to investigating or troubleshooting problems related to network, filesystem, devices or even native libraries. This article first introduces lsof usage and syntax illustrated with concrete examples and then dive into advanced techniques.