Lsof is a Unix-specific diagnostic tool. Its name stands for LiSt Open Files, and it does just that. It lists information about any files that are open by processes currently running on the system. It can also list communications open by each process.
Recent releases


Changes: This release updates the Darwin libproc sources; changes dummy declarations in the lib source file; adds support for Linux /proc/net/packet files; improves socket file only processing for Linux and PSTAT-based HP-UX; adds an htonl call around INADDR_LOOPBACK usage; adjusts for a change in FreeBSD 8.0 device number handling; adds -i speed improvements for AIX, Darwin, FreeBSD, PSTAT-based HP-UX, Linux, and Solaris; fixes a PSTAT-based HP-UX 11.31 stat(2) problem; adjusts for kernel header file changes in FreeBSD 8.0-CURRENT; and adds a Solaris VxFS warning, where appropriate.


Changes: Adjustments to a change in FreeBSD 6.0 and above byte level locking have been made. Warnings for unsupported dialects or versions are issued. The Linux UDPLITE protocol is supported. A missing quote in the FreeBSD Configure stanza has been added. The usage.o rule in the HP-UX PSTAT-based Makefile has been restored.


No changes have been submitted for this release.


Changes: Text file support for Apple Darwin, a "-x [fl]" cross-over option, the optional reporting of socket options, and a "-z [z]" option for Solaris 10 were added. The UnixWare 7.1.4 support was updated.


Changes: This version improves the configure script, adds support for and works around problems on various BSD systems, fixes a 'c' option error message, eliminates a header file hack for recent NetBSD and OpenBSD versions, adds preliminary (and incomplete) Solaris SAM-FS file system support, fixes a Solaris device name reporting bug that is visible when HASDCACHE isn't defined, fixes NFS and AFS on AIX and AFS, updates the method of getting Darwin kernel header files, and adds Linux lsof bug fixes and improvements.
- All comments
Recent commentsI have missed to type there the url of the article:
http://www.vmware.com/appliances/directory/227
Hi;
I saw this article saying "lsof for version for AMD 64-bit processors with the 64-bit Solaris 10 kernel is being worked on."
I have this problem where i get this:
# lsof
lsof: FATAL: lsof was compiled for a 32 bit kernel,
but this machine has booted a 64 bit kernel.
Below is my machine info:
# isainfo
amd64 i386
# isainfo -v
64-bit amd64 applications
sse3 sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov amd_sysc cx8
tsc fpu
32-bit i386 applications
sse3 sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov amd_sysc cx8
tsc fpu
# isainfo -b
64
lsof version used: lsof_4.78.tar.gz
gcc=gcc version 3.4.4
cc=cc: Sun C 5.8 2005/10/13
Can I confirm with you if lsof_4.78 for version for AMD 64-bit processors with the 64-bit Solaris 10 kernel is not working yet too?
If the answer is no, can you suggest, what I should do to correct the error?
Thanks
nice work
lsof is great, thanks ;)
Keep the good work up.
Re: downloading lsof
> The link is not broken. It appears
> broken because ftp://vic.cc.purdue.edu
> cannot Reverse-DNS your box.
For those trapped behind firewalls or who are
otherwise nameless, the FTP server at
vic.cc.purdue.edu reports that "you may be able to
get lsof from one of these mirror sites":
ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof
ftp://ftp.cert.dfn.de/pub/tools/admin/lsof
ftp://ftp.cetis.hvu.nl/pub/lsof
ftp://ftp.crc.doc.ca/packages/lsof
ftp://ftp.fu-berlin.de/pub/unix/tools/lsof
ftp://ftp.sunet.se/pub/unix/admin/lsof
ftp://ftp.tau.ac.il/pub/unix/admin
ftp://ftp.tu-darmstadt.de/pub/sysadmin/lsof
ftp://ftp.tux.org/pub/sites/vic.cc.purdue.edu/tools/unix/lsof
ftp://ftp.uni-mainz.de/pub/misc/lsof
ftp://ftp.web.ad.jp/pub/UNIX/tools/lsof
ftp://gd.tuwien.ac.at/utils/admin-tools/lsof
ftp://sunsite.ualberta.ca/pub/Mirror/lsof
ftp://the.wiretapped.net/pub/security/host-security/lsof/
ftp://wuarchive.wustl.edu/packages/security/lsof
I successfully downloaded the 'lsof' source
from 'wuarchive.wustl.edu' and they appear to have
a good set of current binaries for the latest os
levels as well.
Although not in the suggested list, you can
also download the source (one release back) and
the Solaris binary from:
ftp://ftp.sunfreeware.com
downloading lsof
The link is not broken. It appears broken because ftp://vic.cc.purdue.edu cannot Reverse-DNS your box.