
lsof command lists open files. This command has a vital role in server Administration. This command reveals the files which are opened by a process. In Linux/Unix, everything is considered as a file such as pipes,sockets,devices etc are treated as files. Thus, by using ‘lsof’ command we will get the information of any opened files.