nerdexam
CompTIA

220-1102 · Question #504

Which of the following commands can a technician use to get the MAC address of a Linux distribution?

The correct answer is B. ifconfig. The ifconfig command is used on Linux distributions to display network interface configuration, including the MAC address of network adapters.

Operating Systems

Question

Which of the following commands can a technician use to get the MAC address of a Linux distribution?

Options

  • Anet use
  • Bifconfig
  • Cnetstat
  • Dping

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    94% (29)
  • C
    3% (1)

Why each option

The `ifconfig` command is used on Linux distributions to display network interface configuration, including the MAC address of network adapters.

Anet use

`net use` is a Windows command used to connect to or disconnect from shared network resources.

BifconfigCorrect

The `ifconfig` command (interface configurator) is a command-line utility used to view and configure network interfaces on Linux and Unix-like operating systems, and it clearly displays the MAC address (also known as the hardware address or HWaddr).

Cnetstat

`netstat` displays network connections, routing tables, interface statistics, and multicast memberships, but not primarily the MAC address of a local interface.

Dping

`ping` is used to test reachability of a host on an Internet Protocol (IP) network and measure the round-trip time for messages sent to the destination host.

Concept tested: Linux networking commands

Source: https://linux.die.net/man/8/ifconfig

Topics

#Linux commands#ifconfig#MAC address#Networking commands

Community Discussion

No community discussion yet for this question.

Full 220-1102 Practice