100 Useful Command-Line Utilities
by Oliver; 201494. ifconfig
ifconfig spits out a bunch of network-related information, often including your IP address and MAC address:$ ifconfigYour IP address should be somewhere around here:
$ ifconfig | grep inetIf 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.