Sunday, December 13, 2015

Linux command to get information related to a bind port

We can use following linux command to get details of a bind port.
lsof -i :port_number

[root@dhcppc1 ~]# lsof -i :5060
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
asterisk 3830 root    9u  IPv4  41463      0t0  UDP *:sip


No comments:

Post a Comment