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}'

저작자 표시 비영리 변경 금지
신고
posted by citadel