Home >Operation and Maintenance >Linux Operation and Maintenance >How to query mac address in linux
How to query the mac address in Linux: 1. Open the system, right-click on the desktop and select "Open Terminal"; 2. In the terminal, execute the "ifconfig" command to view the output results and output information. The string immediately following the word "ether" in the fourth line is the mac address.
The operating environment of this tutorial: Ubuntu 18.04 system, Dell G3 computer.
The MAC address is the unique identifier of the network card on the computer in the network. The MAC address of each network card is unique. So how to query the mac address under Linux? The following article will introduce to you how to query the mac address.
Method steps:
1. Open the system, right-click on the desktop and select "Open Terminal"
2. In the terminal, execute the "ifconfig" command
# to view the output results, followed by "ether" in the fourth line of the output information The string after the word " is the mac address.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of How to query mac address in linux. For more information, please follow other related articles on the PHP Chinese website!