Home  >  Article  >  Operation and Maintenance  >  How to query mac address in linux

How to query mac address in linux

青灯夜游
青灯夜游Original
2022-04-24 20:01:4332961browse

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.

How to query mac address in linux

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"

How to query mac address in linux

2. In the terminal, execute the "ifconfig" command

How to query mac address in linux

# 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn