100 Useful Command-Line Utilities

by Oliver; 2014

94. ifconfig

ifconfig spits out a bunch of network-related information, often including your IP address and MAC address:
$ ifconfig
Your IP address should be somewhere around here:
$ ifconfig | grep inet
If you're looking for your MAC address, it should be labeled as HWaddr. I'm the opposite of a network guru and am ignorant about the many other capabilities of this command, but you can read ifconfig's Wikipedia entry.

<PREV   NEXT>