Sys Admin's Daily Grind: lsof

The Long and the Short of It: lsof

Author(s):

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.

Read full article as PDF:

065-065_charly.pdf (874.03 kB)

Related content

  • Isof

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

  • Charly's Column

    Without Network Address Translation (NAT) on many LANs, the IPv4 Internet address space would have been exhausted years ago. Still, it’s probably a good idea to check what comes through your NAT connections.

  • Introduction

    Just a couple of hours after completing this article, Charly headed off on vacation. Before he left, he indulged in a spot of piercing to help him work around the paranoid firewalls waiting for him in the Internet cafes at his holiday location.

  • 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.

  • Charly's Column: tcpflow and HugeURL

    First the fun, then the pleasure: This month, we look at a TCP that administrators have to take seriously, followed by some URL fun.

comments powered by Disqus

Direct Download

Read full article as PDF:

065-065_charly.pdf (874.03 kB)

News