CLI shortcuts, 3

Getting the NIC’s MAC address:

ifconfig ethx | awk '/HWaddr/ {print $5}'

To enumerate all MAC addresses, just replace ethx with -a.

0 Responses to “CLI shortcuts, 3”


  1. No Comments

Leave a Reply