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.


How can you display all active connections in IP format?

  1. netstat -r

  2. netstat

  3. netstat -n

  4. netstat -i

The correct answer is: netstat -n

Netstat is a command-line utility used to display network connection information on a computer. The -n option specifies that this information should be displayed in numerical form, including IP addresses instead of hostnames. Option A netstat -r displays the routing table, not active network connections. Option B: netstat displays active connections, but not in IP format. Option D: netstat -i displays interface statistics, not active connections.