Posted on 30 July, 2008 By Kim Woodbridge

Why the Command Line is Still Useful

Today, Lifehacker has a post called the Top 10 Command Line Tools. I’m sure most people are thinking, “Command Line? Who uses the Command Line? That’s for old people and went out with DOS.” There are, however, still some really useful reasons for using the command line and it shouldn’t be written off as old and unnecessary.

MAC and Linux users have great command line terminals integrated into the operating system. Windows users can use the Command Prompt or can install Cygwin for Unix emulation. Lifehacker also has information about installing Cygwin.

In Windows the Command Prompt is located at Start > Programs > Accessories and looks like the following:

A useful command is tracert, which will trace the path of computers between your computer and the site that you are trying to reach. At the prompt type tracert and the name of the site . For example:

tracert wikipedia.org

Recently, even though I had internet access, I could not access two sites that I frequently visit; Wikipedia and MobyGames. I went to Down for Everyone of Just Me and discovered that the sites were not down. Being curious, I started to wonder why these two sites were inaccessible. So, I opened the command prompt and typed in tracert mobygames.com and then did the same for Wikipedia.

I found that both traces were not being completed and that the trace was timing out on a particular IP address. Unfortunately, Windows does not included Whois as a command so I had to go to a website to find out who owned the IP addresses. I would not have had to leave the command line to do this using a MAC or Linux. A Whois search can be done at Whois by IP. Type in the IP and you will be shown a page like the following. This example is the Whois page for Wikipedia.org

So, when I couldn’t access two specific sites I typed in the IP address where the trace was stopping on this Whois page and found that the IP address belonged to Verizon and was a data center in Virginia. Since Verizon is my ISP, this made sense. Just to verify and continue being a nerd, I called Verizon and asked if there was a problem in the VA data center and they verified that there was and they were working to correct the problem. Instead of going online or posting on Twitter, “OMG - I can’t access Wikipedia!” I was able to calmly utilize tools available on my computer and online to logically determine the source of the problem. Since I enjoy solving puzzles and problems, I derived a lot of satisfaction from figuring this out.

This is just one of many examples of how the command line is still an extremely useful tool.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Ma.gnolia
  • Reddit
  • TwitThis
  • E-mail this story to a friend!
  • StumbleUpon
  • Technorati

Related Posts:
Command Line Part 2 - Deleting Files
Wordle - Generate Word Clouds from Text, RSS, and del.icio.us
Extract Audio from YouTube Videos
Posted In : Tool


If you enjoyed this post, please subscribe to my RSS Feed




Trackbacks & Pingbacks

Comments

Great post! I grew up using a GUI for nearly everything, so it was intimidating when I switched to Linux exclusively last year. I have found, as you demonstrated above, that the command line can offer much more power and control over a task or application than a GUI ever could. It is well worth the learning curve.

RSS feed for comments on this post. | TrackBack URI

Leave a comment



Recent Comments

    • Raju: damn good... thank u so much!! Raju´s last blog post - ...
    • Carla: My blog is relatively new and so far Google works pretty well for the time being. I never searched for my own blog thou...
    • Kim Woodbridge: @Cath @ Carla I located this information about the problem you are having with visual text editor. Maybe it will hel...
    • Kim Woodbridge: @Raju - Thank you for visiting and commenting. I think there are plugins that already do that. You could take a look...
    • Kim Woodbridge: @Matt - Thanks! I really appreciate it. Maybe I'll try google search this weekend....
    • Matt Gio: @Kim - So far google has been doing pretty well for me. But if I come into any problems I'll let you know. BTW - I adde...
    • Raju: Hi, i would like to have a plugin which can give me a list of available tags related to the post I am going to publish,...
    • Kim Woodbridge: @Stratos - That was another thought I had - how many people even use the WordPress search function. I use it occasional...