This is our ongoing series of Linux commands and in this article, we are going to review lsof command with practical examples. lsof meaning ‘LiSt Open Files’ is used to find out which files are open by which process. As we all know Linux/Unix considers everything as a file (pipes, sockets, directories, devices, etc). One
A port is a logical entity that represents an endpoint of communication and is associated with a given process or service in an operating system. In previous articles, we explained how to find out the list of all open ports in Linux and how to check if remote ports are reachable using the Netcat command.
The lsof command in Linux displays in its output information about files that are opened by processes. In this article, we will discuss the Linux lsof tool using 15 easy-to-understand examples. Please note that all examples mentioned in this tutorial have been tested on Ubuntu 20.04 LTS, but they will work on other Linux distributions
In this article, we will explain how to find out who is using a particular file in Linux. This will help you know the system user or process that is using an open file. We can use the lsof command to know if someone is using a file, and if they are, who. It reads
The Linux lsof command lists information about files that are open by processes running on the system. (The lsof command itself stands for “list of open files”.) In this tutorial show practical examples of the use lsof command. Some of the Linux distributions do not come with installed lsof packages. However, it can be installed as follows: Install lsof in