Sys Admin's Daily Grind: lsof

The Long and the Short of It: lsof

Article from Issue 124/2011

The shorter a command, the longer the list of support parameters. This rule applies to lsof, one of Charly’s favorite commands.

If you type lsof without parameters, the output is a long list of open files. This outpouring is sorted by PID; thus, it starts with init. On a laptop I was using as a lab machine, the list includes no fewer than 6,778 entries, which is not my understanding of intelligible.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Isof

    Track down and expose intruders with the versatile admin tool lsof.

  • lsof

    In Linux, everything is a file – directories, devices, pipes – so lsof (list open files) reveals what's happening on your system.

  • Charly's Column

    Well-used services write reams of log information to disk, which is not only bothersome from a storage perspective but also pushes grep and the usual group of statistics tools to their limits. Will hitching the syslog daemon up to a database help?

  • Charly's Column: QPS

    The graphical tool QPS frees admins from Kafkaesque ambiguities about the cause, history, and side effects of running processes. Depending on the view, either clarity or detailed information dominate the scene.

  • Glsof-Queries Check Open Files

    Glsof-Queries is a GUI for the lsof (list open files) UNIX command with many query options. After a complete rework the open source tool is now available in version 1.0.0.

comments powered by Disqus