What is the command used to monitor and manage network connections in Linux?
IBM technical mcq question, verified with a worked answer. Free to practise - no sign-up.
What is the command used to monitor and manage network connections in Linux?**
Pick ONE option
Show answer & explanation
netstat is the primary command for monitoring and managing network connections in Linux, displaying active connections, listening ports, and network statistics. While ifconfig configures network interfaces, ping tests connectivity, and route manages routing tables, only netstat comprehensively monitors and manages active network connections.
Step-by-step Derivation:
Analyzing each option: (A) ifconfig is used to configure and display network interface information, not monitor connections; (B) netstat displays network connections, listening ports, routing tables, and network statistics—directly matching the requirement to 'monitor and manage network connections'; (C) ping is a diagnostic tool for testing host reachability, not for monitoring connections; (D) route displays and manipulates the routing table, not for monitoring active connections. netstat is the standard tool for connection monitoring.