List open files

This command lists regular files that are open by running processes:

lsof -n | grep REG

Or just grep for the file you are looking for:

lsof -n | grep $filename

You can also see what ports are open using lsof -i.





Please VOTE for this page at: ADD TO DEL.ICIO.US | ADD TO DIGG | ADD TO FURL | ADD TO NEWSVINE | ADD TO NETSCAPE | ADD TO REDDIT | ADD TO STUMBLEUPON | ADD TO TECHNORATI FAVORITES | ADD TO SQUIDOO | ADD TO WINDOWS LIVE | ADD TO YAHOO MYWEB | ADD TO ASK | ADD TO GOOGLE


1 Comment


  1. To check for open ports in Solaris 9, see this post:

    http://www.utahsysadmin.com/2009/04/02/find-open-ports-in-solaris-9/

    Posted April 2, 2009, 3:02 pm

Leave a reply