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

GNOME To Do 3.24 release, and it’s shining

GNOME To Do is a personal task manager for GNOME. It uses GNOME technologies and integrates very well with the desktop. And now, it’s finally being released! The 3.24 version comes with a few nice features and, most importantly, whole load of bugfixes. Let’s get started! Read more

TrueOS STABLE Update: 4/24/17

After testing the UNSTABLE push over the weekend, the devs are happy to release a new STABLE update and installation files today! This update consists of two parts: installer changes for those who install TrueOS fresh, and general updates for systems with TrueOS already installed. Read more Also: TrueOS 20170424 Stable Update

How to track and secure open source in your enterprise

Recently, SAS issued a rather plaintive call for enterprises to limit the number of open source projects they use to a somewhat arbitrary percentage. That seems a rather obvious attempt to protest the rise of the open source R programming language for data science and analysis in a market where SAS has been dominant. But there is a good point hidden in the bluster: Using open source responsibly means knowing what you’re using so you can track and maintain it. Read more

How I became a webcomic artist in less than a month with open source tools

If you are reading this, you probably care about, or are at least mildly interested in, open source. Like you, I care about and am interested in open source. Perhaps unlike you, I am also a webcomic artist. You can find my work at Herpaderp.party. Read more