Language Selection

English French German Italian Portuguese Spanish

Find open files with lsof

Filed under
HowTos

For a heavy-duty investigative or forensics tool, look no further than lsof. It comes bundled with pretty much every Linux distribution, and it's an indispensable program. The name of the tool stands for "list open files," and that's exactly what it does, with an amazing amount of detail.

For instance, on a Web server that sends e-mail, has a POP3 and IMAP server, and has MySQL, mailman, etc., executing lsof provides more than 6,200 lines of data. Now, "open files" is a bit of a misnomer as lsof will also display open TCP ports, open UDP ports, open sockets, and so forth. For instance, you could display listening TCP connections and their programs by using the netstat command.

Full Story.

More in Tux Machines

today's howtos

The Red Hat Way

  • Red Hat wants to make cold-shouldered OpenStack red hot
    At OpenStack Summit in Boston last May, some speculated that the event might be the last gasp for OpenStack — an open-source platform for cloud computing and infrastructure-as-service. Granted, OpenStack was one of the less hyped open-source projects of the past year. But renewed community and end-user interest is breathing fresh life into the platform, according to Rob Young (pictured), senior manager of virtualization product and strategy at Red Hat Inc. Telcos and others are adopting OpenStack “because of the simplification of what was once complex, but also in the cost savings that can be realized by managing your own cloud within a hybrid cloud environment,” Young said.
  • Improved multimedia support with Pipewire in Fedora 27
    Pipewire — a new project of underlying Linux infrastructure to handle multimedia better — has just been officially launched. The project’s main goal is to improve the handling of both audio and video. Additionally, Pipewire introduces a security model to allow easy interaction with multimedia devices from containerized and sandboxed applications, i.e. Flatpak apps.
  • Architecting the future with abstractions and metadata
    The modern data center is built on abstractions, with Docker, Kubernetes, and OpenShift leading the way.

Games: Racing Games, Steam, SteamWorld Dig 2, XCOM 2: War of the Chosen

Software: DNS Checkers, Alternatives to Adobe Software, Fake Hollywood Hacker Terminal and More