January 11, 2014

lsof: A very useful Unix command to list the open files

lsof – shortened form for “list open files” – is the command that can be used to report the list of open files on Unix-based systems. There are a number of options available that can be used to control how the command behaves: list all the open files on a system, find out which processes and users have a file opened, see what files does a user or program have open etc.

Just to draw parallel, this Unix command is equivalent to Windows’ Process Explorer that was previously shared as a Techbit.

http://www.catonmat.net/blog/unix-utilities-lsof/ has given lot more details on the various usages of the command in a very user friendly way.

No comments: