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.


How do you disable the first wired network interface in Linux?

  1. ifconfig eth1 down

  2. ifdown eth0

  3. ifconfig eth0 down

  4. ip link set eth0 down

The correct answer is: ifconfig eth0 down

This commands resets the first ethernet interface, eth0, allowing you to make modifications at the user level without having to restart the system. Option A is incorrect because it specifies eth1 instead of eth0. Option B is incorrect because ifdown is used to take down all network interfaces, not just one specific interface. Option D is incorrect because it uses a different command, ip link, to disable the interface instead of ifconfig.