commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
There is 1 alternative - vote for the best!
has the benefit of being a bit more cross-platform.
Get just the IP address for a given hostname. For best results, make this a function in your shell rc file so that it can be used for things like traceroute:
Titus:~$ traceroute `getip foo.com`
traceroute to 220.127.116.11 (18.104.22.168), 64 hops max, 52 byte packets
If you can do better, submit your command here.
You must be signed in to comment.