=== Opened files - directories ===
lsof /var/log/httpd/
\\
=== Opened files - processes ===
lsof -c ssh
\\
=== Opened files - device busy ===
"Device or Resource Busy" Error - we need to find out what are all the processes using the mount point and kill those processes to umount the directory.
\\
By using lsof we can find those processes.
lsof /home
\\
=== Opened files - specific users ===
lsof -u luke
== Killing all processes that belong to a user ==
kill -9 `lsof -t -u luke`
\\
=== Opened files - specific process ===
lsof -p 1234