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 are 2 alternatives - 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 126.96.36.199 (188.8.131.52), 64 hops max, 52 byte packets
If you can do better, submit your command here.
You must be signed in to comment.