Warning: Undefined variable $html in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 240

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/lib/plugins/tabinclude/helper.php:240) in /usr/share/nginx/html/inc/Action/Export.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/lib/plugins/tabinclude/helper.php:240) in /usr/share/nginx/html/inc/Action/Export.php on line 106
lsof

lsof

  • general
  • Filesystem usage (delete files)
  • compromise

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