有没有更有效的方法来检索 Linux 中网卡的 MAC 地址?
这有效:
ip link show dev eth0 | awk ' /link\/ether/ { print $2 }'
但可以通过以下方式找到:
cat /sys/net/something
linux mac ethernet awk net
awk ×1
ethernet ×1
linux ×1
mac ×1
net ×1