---

How to Find Out Who is Using a File in Linux

We can use the lsof command to know if someone is using a file, and if they are, who. It reads kernel memory in its search for open files and helps you list all open files. In this case, an open file may be a regular file, a directory, a block special file, a character special file, a stream, a network file and many others – because in Linux everything is a file.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis