lsof

lsof

  1. Usage: lsof
    1. -i is internet connections
    2. -P port number only
      1. e.g., 22 and not ssh
    3. -p [process id] shows everything tied to a specific process ID (PID)

BHIS-SOCC-lab-LinuxCLI-1.png

BHIS-SOCC-lab-LinuxCLI-2.png

Metadata

Sources

lsof(8) - Linux manual page
How to use the lsof command to troubleshoot Linux | Enable Sysadmin

Tags

#tools_linux