Difference between revisions of "Lsof -i -P"

From wikieduonline
Jump to navigation Jump to search
 
Line 2: Line 2:
  
 
  sudo [[lsof -i]] -P
 
  sudo [[lsof -i]] -P
 +
  sudo [[lsof -i]] -P | grep "80 ([[LISTEN]])"
  
 
  sudo lsof -i -P | head -10
 
  sudo lsof -i -P | head -10

Latest revision as of 18:26, 22 February 2024

sudo lsof -i -P
 sudo lsof -i -P | grep "80 (LISTEN)"
sudo lsof -i -P | head -10
COMMAND     PID           USER   FD   TYPE             DEVICE SIZE/OFF   NODE NAME
launchd       1           root    8u  IPv6 0xfd30de9ad1b2011d      0t0    TCP *:22 (LISTEN)
launchd       1           root    9u  IPv4 0xfd30de9acfce9235      0t0    TCP *:22 (LISTEN)
launchd       1           root   22u  IPv4 0xfd30de8c6ad4a9dd      0t0    UDP *:138
launchd       1           root   23u  IPv6 0xfd30de9ad1b2011d      0t0    TCP *:22 (LISTEN)
launchd       1           root   24u  IPv4 0xfd30de9acfce9235      0t0    TCP *:22 (LISTEN)
launchd       1           root   25u  IPv4 0xfd30de8c6ad565dd      0t0    UDP *:67
launchd       1           root   31u  IPv4 0xfd30de8c6ad4addd      0t0    UDP *:137
launchd       1           root   40u  IPv6 0xfd30de9ae1ebe11d      0t0    TCP *:50051 (LISTEN)
launchd       1           root   46u  IPv4 0xfd30de9acc7b627d      0t0    TCP *:50051 (LISTEN)

See also[edit]

Advertising: