Comments on Linux lsof Command Tutorial for Beginners (15 Examples)

The lsof command in Linux displays in its output information about files that are opened by processes. In this article, we will discuss the tool using 15 easy-to-understand examples.

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: sanket

Very nice explanation of lsof command .. keep posting ...

By: Claudis

What you have referenced, does it work on the latest Fedora software?  Thank you

By: till

Yes, lsof is a standard command and it works on any Linux distribution.

By: ShabbyCat

Great article! Another useful one is "lsof -i tcp:PORT_NUMBER"  to list processes happening on a specific port, useful for node.js when you need to kill a process.

Ex: lsof -i tcp:3000 

then say you want to kill the process 5393 (PID) running on port 3000, you would run "kill -9 5393"

 

:)