Complex tools for a simple task
It's common for us, users and admins, to check what is the ip of the host we are logged in to. Currently on Linux, this task is commonly done by the ip and ifconfig tools. However, I find them way too complex for the simple task of checking what's the IP. their output is full of confusing, irrelevant details, and they have tons of command-line arguments.
But you can pipe it all through grep, sed and awk!
Well... I'm not even going to explain why it isn't friendly.
myip for the rescue
So after I failed to find a simple tool for displaying IPs, I started writing it myself. Some command line samples:
1. Show primary IP:
2. Show all IPs:
# myip --all
3. Show IP of a specific interface:
# myip eth0
More info & download on the github page, Check it out and submit pull requests 🙂