How can I tell what files, ports, etc.. a process has

How can I tell what files, ports, etc.. a process has open?

Added: 11/10/01

You need to download and install lsof (LiSt Open Files), an indispensable

freeware utility. The lsof homepage is:

o <http://www-rcd.cc.purdue.edu/~abe/>

HP-UX binaries can be downloaded from one of the below sites:

o <ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/binaries/hpux/>
o <http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.64/>

However, the author discourages using precompiled binaries, and instead
recommends compiling lsof yourself on the same system on which you'll be
running it.



Home
FAQ