Question: why lsof is used in linux?
Answer: 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 files (pipes, sockets, directories, devices etc). One of the reason to use lsof command is when a disk cannot be unmounted as it says the files are being used.