lsof
Warning: Undefined variable $html in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 240
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
lsof.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1