-
How to get only the mac address (Linux)Computer/linux 2017. 8. 25. 17:24
Sometime, I would like to get only the mac address of the ethernet device. so here is the command line to do this.
ip addr show dev enp5s0 | grep "link/ether" | awk '{print $2}'
'Computer > linux' 카테고리의 다른 글
how to acceess udev rule parameter (0) 2017.08.25 Exact copy a huge directory into the different one in linux (0) 2017.03.15 Raspberry Pi Image copy in Linux (0) 2017.03.10