{"id":3638,"date":"2012-11-09T00:01:39","date_gmt":"2012-11-09T07:01:39","guid":{"rendered":"http:\/\/www.wambooli.com\/blog\/?p=3638"},"modified":"2012-11-04T13:20:09","modified_gmt":"2012-11-04T20:20:09","slug":"living-the-unix-life-in-windows","status":"publish","type":"post","link":"https:\/\/www.wambooli.com\/blog\/?p=3638","title":{"rendered":"Living the Unix Life in Windows"},"content":{"rendered":"<p>Recently, I&#8217;ve taken it upon myself to bone up on my Unix. I keep a Terminal window open on my Macintosh, and I&#8217;ve been plowing through the Propeller-Head books, discovering more about how Unix works, honing my shell scripting techniques, and discovering all sorts of wonderful and powerful things the World&#8217;s Best Computer Operating System can do.<br \/>\n<!--more--><br \/>\nI&#8217;ve you&#8217;ve read my blog posts for the past (Gads! Has it been?) five years, then you know I&#8217;m an old fogey when it comes to using computers. I enjoy the command prompt. Obviously Unix and I are headed toward a torrid love affair.<\/p>\n<p>There is a command prompt (DOS or Terminal) window open on just aboute every computer that encircles me. It&#8217;s just that there are many, many handy things you can do at the command prompt that would take too much time to do in a graphical environment like Windows.<\/p>\n<p>Take the recent mega-post I did on the <code>robocopy<\/code> command. Please!<\/p>\n<p>While I&#8217;m enjoying reviewing and learning new Unix terminal commands, occasionally they do get in the way: Whenever I switch over to my writing computer I&#8217;m faced with a DOS prompt (the CMD window). Instead of typing <code>DIR<\/code> to list a directory, I type <code>ls<\/code>, which is the Unix command that does the same thing.<\/p>\n<p>The problem with typing <code>ls<\/code> instead of <code>DIR<\/code> at the <code>C:><\/code> prompt?<\/p>\n<p><code>'ls' is not recognized as an internal or external command,<br \/>\noperable program or batch file.<\/code><\/p>\n<p>You can learn a few things from this lesson. First, appreciate how much DOS was despised back in the day; the error message doesn&#8217;t explain much. Second, at least it&#8217;s a better error message than the original <code>Bad command or filename<\/code>. Third, obviously Microsoft doesn&#8217;t believe in the serial comma.<\/p>\n<p>There is available a more powerful command line program called <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/bb978526.aspx\" target=\"_blank\">PowerShell<\/a>. It features a lot of the common DOS commands, but also some hybrid Unix commands. It&#8217;s pretty spiffy. In fact, if it came out 15 years ago I&#8217;d be clamoring to write a book on it. Today? Meh.<\/p>\n<p>The problem I&#8217;m having now is that the PowerShell would just Yet Another Thing to learn in Windows. So instead, I opted to download the Cygwin package,<\/p>\n<p>Cygwin was originally developed by Cygnus Solutions, hence the &#8220;cyg&#8221; in the name. Today it&#8217;s distributed by the Red Hat Linux people. It&#8217;s basically a Unix shell that runs under Windows. It provides a Unix command prompt &#8212; the bash shell (if that means anything) &#8212; in which I can exercise my Unix muscles.<\/p>\n<p>It&#8217;s a dream.<\/p>\n<p>Well, a nerd&#8217;s dream, but it&#8217;s still a dream.<\/p>\n<p>You can check out Cygwin at <a href=\"http:\/\/cygwin.com\/\" target=\"_blank\">cygwin.com<\/a> It&#8217;s free. It&#8217;s pretty cool &#8212; if you&#8217;re into that kind of thing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I&#8217;ve taken it upon myself to bone up on my Unix. I keep a Terminal window open on my Macintosh, and I&#8217;ve been plowing through the Propeller-Head books, discovering more about how Unix works, honing my shell scripting techniques, and discovering all sorts of wonderful and powerful things the World&#8217;s Best Computer Operating System [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-3638","post","type-post","status-publish","format-standard","hentry","category-main"],"_links":{"self":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3638"}],"version-history":[{"count":8,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3638\/revisions"}],"predecessor-version":[{"id":3649,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3638\/revisions\/3649"}],"wp:attachment":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}