One Line IP Address Bash Command

ifconfig eth0 | sed -n ‘/^[A-Za-z0-9]/ {N;/dr:/{;s/.*dr://;s/ .*//;p;}}’

So you want to display just your IP address and not all the other stuff that comes with using the ifconfig command. Then use the above command.

It’s useful if you need your IP address in a script but you don’t want to set a static […]

Wireless showing but fails to up/dhcpcd – Arch Linux

After my installation of Arch Linux I had some trouble using my wifi card which was working while I was running the live CD. What was strange was that the card would show up in iwconfig and ifconfig -a but not ifconfig It turns out I needed to install the wireless drivers and here’s […]