Network

What is a socket? Where can you see the list of sockets in your system?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  • A socket is a software endpoint that enables two-way communication between processes over a network. Sockets provide a standardized interface for network communication, allowing applications to send and receive data across a network. To view the list of open sockets on a Linux system: netstat -an
  • This command displays a list of all open sockets, along with their protocol, local address, foreign address, and state.