linux-connections

Looks up TCP/IP network connection information.

Syntax

linux-connections

Description

This command retrieves TCP/IP network connection information from the following files:

  • /proc/net/icmp
  • /proc/net/icmp6
  • /proc/net/raw
  • /proc/net/raw6
  • /proc/net/tcp
  • /proc/net/tcp6
  • /proc/net/udp
  • /proc/net/udp6

After running the linux-connections command, the output fields are as follows:

Output Fields

FieldTypeDescription
pidIntegerProcess ID
rx_queueIntegerRx queue length
tx_queueIntegerTx queue length
protocolStringProtocol
local_ipIP addressLocal IP address
local_portIntegerLocal port
remote_ipIP addressRemote IP address
remote_portIntegerRemote port
stateStringStatus (LISTEN, ESTABLISHED, TIME_WAIT, etc.)