I know just enough linux/unix shell to be dnagerous. But every once in a while I find out about a new command that makes me go Ooooo… why doesn’t Windows (I won’t say MacOSX since it may) have this?
lsofis the Linux/Unix über-tool. I use it most for getting network connection related information from a system, but that’s just the beginning for this amazing and little-known application. The tool is aptly called lsof because it “lists open files“. And remember, in Unix just about everything (including a network socket) is a file.
I’m not sure how useful this command would be, since you’d have to memorize a million and one flags, but it does look pretty powerful, and it does look like a cool command to have in your tool box.
Tags: HOWTO, Interesting, Linux, Tutorial





Mac OS X has lsof installed at /usr/sbin/lsof