Prepare for the COMPTIA A+ Exam. Test your knowledge with our flashcards and multiple choice questions, complete with hints and explanations. Ensure you're ready for exam 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.