Using lsof to list all of the TCP and UDP listening sockets.

lsof - list open files

# lsof -i -n | egrep ‘COMMAND|LISTEN|UDP|TCP’
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
avahi-dae 3220 avahi 13u IPv4 7403 UDP *:mdns
avahi-dae 3220 avahi 14u IPv4 7408 UDP *:58607

One Response to “Using lsof to list all of the TCP and UDP listening sockets”

  1. 1outcaston 12 Jan 2022 at 11:07 pm

    2advocacy…

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.