lsof command

lsof command is an advanced Unix command that is typically not installed with a Unix/Linux distro but can be easily obtained from standard package repositories in most of modern OS distributions.

lsof stands for list open files, but since everything in Unix is a file, you get a lot more than just a list of files open by a given process.

What lsof Is Great For

  • Show all the network connections open on your system (with process names to see what is responsible for each connection)
  • Show list of files open on the operating system or single process level
  • Confirm what is using a specific file or directory
  • Confirm what is using a particular network port

See also




Keep Learning with Me

Follow me on Facebook and Twitter or jump into Telegram chat!:
I'm using Brave browser
Give it a try, it's awesome: Brave Browser
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
29 May 2020

How To: Fix apt update in Ubuntu 19.04

28 May 2020

Raspberry Pi 4 8GB

19 May 2020

Grafana 7.0 Released

Recent Tweets