Which command can be used to view network connections?

Prepare for the LPIC-2 Certification Test with our study tools, including flashcards and multiple choice questions with hints and explanations. Get ready to pass your exam!

The command used to view network connections is netstat. This utility displays various network-related information, including active TCP connections, routing tables, and network interface statistics. When you run netstat, you can see which connections are established on the system, which ports are being listened to, and the status of established connections.

Netstat provides detailed information about each connection, including the local and remote addresses along with their corresponding port numbers, which is essential for troubleshooting network issues or monitoring network traffic.

In contrast, ifconfig is primarily used for configuring and displaying network interfaces, but it does not provide information about open connections. The ping command is used for testing reachability of network hosts and measuring round-trip time for messages sent from the originating host to a destination computer, rather than listing connections. The route command is used to view and manipulate the IP routing table, which is not focused on active connections.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy