Reputation: 21
I would like to know how we get our MAC address on an UNIX environment, I know already ifconfig -...
but I'm getting others stuff too (I just want the MAC address, nothing more).
Upvotes: 0
Views: 1220
Reputation: 101
Is it possible ?
As the root user (or user with appropriate permissions
Type "ifconfig -a"
From the displayed information, find eth0 (this is the default first Ethernet adapter),locate the number next to the HWaddr. This is your MAC address..
Upvotes: 1