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

How To Make A Multiboot USB In Linux And Windows

Do you wish to make a multiboot USB? Do you want to have multiple OSes on a USB drive for installation or for recovering other systems? Do you want to boot and use multiple operating systems from your USB drive, I got you covered. Let us look at two ways of achieving this. Read
more

Today in Techrights

Red Hat News