Ace your COMPTIA A+ certification with our practice exam. Engage with a variety of questions including multiple choice and performance-based, complete with hints and detailed explanations. Prepare effectively and boost your confidence for the big day!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which command includes listening ports in its display of all active connections?

  1. netstat -e

  2. netstat -a

  3. netstat -s

  4. netstat -m

The correct answer is: netstat -a

Option A (netstat -e) displays Ethernet statistics, not active connections. Option C (netstat -s) displays per-protocol statistics, not active connections. Option D (netstat -m) displays multicast statistics, not active connections. Netstat -a displays all active connections, including listening ports. This means it will include any open ports that are actively listening for incoming connections. This option is useful for monitoring network connectivity and detecting any potential security risks. It is important to regularly check for any unexpected open ports on your system to ensure the security of your network.