Which command is used to view active network connections in a Linux system?

Prepare for the LPI Linux Essentials 010-160 Test. Study with flashcards and multiple choice questions, each question offers hints and explanations. Get ready to ace your exam!

The command used to view active network connections in a Linux system is netstat. This utility provides detailed information about the network connections, including the local and remote IP addresses, port numbers, and the state of the connections (such as established, listening, or closed).

Using netstat is beneficial for network troubleshooting and monitoring network activity. It gives administrators insights into what connections are currently active, which services are using the network, and can also indicate if there are any unauthorized connections.

The other commands listed serve different purposes. The ping command is primarily used to check the reachability of a host on a network and to measure round-trip time for messages sent to the destination. Ifconfig is a command used to configure and manage network interfaces, providing details like IP addresses and network interface statistics but not active connection states. Ipconfig is a command used in Windows systems to display network configuration details and is not applicable in a Linux context.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy