Coredump

Work, play, and everything in-between.

CLI shortcuts, 3

without comments

Getting the NIC’s MAC address:

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

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

Read more:

Written by Ian Dexter

October 28th, 2005 at 11:05 am

Posted in Work

Tagged with ,

Leave a Reply