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.
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)- A3% (1)
- B94% (29)
- C3% (1)
Why each option
The `ifconfig` command is used on Linux distributions to display network interface configuration, including the MAC address of network adapters.
`net use` is a Windows command used to connect to or disconnect from shared network resources.
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).
`netstat` displays network connections, routing tables, interface statistics, and multicast memberships, but not primarily the MAC address of a local interface.
`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
Community Discussion
No community discussion yet for this question.