
Type the following command to see IPv4 port(s), enter:
# lsof -Pnl +M -i4
Type the following command to see IPv6 listing port(s), enter:
# lsof -Pnl +M -i6
• -P : This option inhibits the conversion of port numbers to port names for network files. Inhibiting the conversion may make lsof run a little