Projects / lsof

lsof

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.

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  30 Oct 2008 05:56
  • Rrelease-after

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.

  • Rrelease-mid
  •  03 Sep 2008 22:47
  • Rrelease-after

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.

  • Rrelease-mid
  •  12 Nov 2004 16:59
  • Rrelease-after

    No changes have been submitted for this release.

    • Rrelease-mid
    •  23 Mar 2004 18:12
    • Rrelease-after

    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.

    • Rrelease-mid
    •  27 Jun 2003 01:50
    • Rrelease-after

    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.

    Rss Recent comments

    Rcomment-before 08 Jun 2009 10:31 Rcomment-trans iza_cutie Rcomment-after

    I have missed to type there the url of the article:

    http://www.vmware.com/appliances/directory/227

    Rcomment-before 08 Jun 2009 10:29 Rcomment-trans iza_cutie Rcomment-after

    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

    Rcomment-before 13 May 2002 19:19 Rcomment-trans Raboo Rcomment-after

    nice work
    lsof is great, thanks ;)

    Keep the good work up.

    Rcomment-before 24 May 2001 19:55 Rcomment-trans tenebraen Rcomment-after

    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

    Rcomment-before 16 Oct 2000 20:10 Rcomment-trans unixjavabob Rcomment-after

    downloading lsof
    The link is not broken. It appears broken because ftp://vic.cc.purdue.edu cannot Reverse-DNS your box.

    1a8c9e1f8b58ebf6f2adff5acbc3b515_thumb

    Project Spotlight

    vitetris

    A text-based Tetris with network 2-player mode.

    Ad9cbe36e08562fbc287a7f7fdac7b2b_thumb

    Project Spotlight

    SLiteChat

    An in-world SL text-only local chat/instant messaging client.