Command
lsof
Explanation
lsof lists open files and the processes that opened them.
Examples
List all open files
lsof
Show processes using port 80
lsof -i :80
Show processes using specific file
lsof /var/log/syslog
lsof
lsof lists open files and the processes that opened them.
List all open files
lsof
Show processes using port 80
lsof -i :80
Show processes using specific file
lsof /var/log/syslog