Who needs the command line? (Well, actually, we all do)

Who needs the command line? (Well, actually, we all do)


As you might have guessed this is going to be a brazen and shameless plug for the command line. I write it to throw in my tuppence-worth after my own Linux experiences. I am also concerned about a new generation of users coming to GNU/Linux without a proper understanding of the underlying reasons for its superiority over Windows but this not a blow by blow comparison.

Since I began using GNU/Linux the desktop has made enormous advancesand recently, with the imminent release of Windows Vista hoving intoview there has been some understandable hubris in an attempt to showthat if Vista is going to have it the Linux desktop probably already hasit: 3D desktop, wobbly windows and rotating cubes. However, leavingaside the fact that GNU/Linux was often designed to run on fast andstable on low end systems that Windows simply couldn't hack (no punintended), even old 486 systems, the arrival of memory and processorhungry graphical bells and baubles might be construed as a retrogradestep. I hate to seem ungrateful or churlish in saying this as someonewho can't (yet) program for toffee but I am not alone. Some writers,like the estimable JemMatzen, think that the desktop is heading in the wrong direction andI have a good deal of sympathy with him. I have always found his websitefull of Linux goodness and good sense. It's well worth a visit.

The problem for GNU/Linux programmers, designers and writers inluring Windows users away is to make the transition as painless aspossible, as user friendly and familiar as possible - but withoutobscuring or compromising the reasons hardened and seasoned Linuxers useit. In other words, security, stability, choice and ethical integrity.At one extreme you have Xandros which attempts to replicate aWindows lookalike environment. It and other distros frequently succumbto a virulent outbreak of myitis - my pictures, my music etc. At theother extreme you have the uncompromising austerity of distros like pureDebian 3.1, SlackWare or Gentoo which take no prisoners and make relatively fewconcessions to sissy Windows users.

How can the circle be squared? How can you introduce and promoteGNU/Linux to a new generation of users without selling its manifestvirtues short and diluting it to the point where it starts to look likea Windows clone? Starting from the command line would be likeintroducing a computer virgin to Windows by way of a DOS tutorial or afirst lesson in that digital midden, the registry.

That said, the solution does lie in the command line - not any oldcommand line, but a command line explained in an approachable friendly,knowledgeable manner and most importantly, buttressed by hundreds ofworked examples as they say in maths textbooks. This is the key to a goodbook on the command line and it is probably the biggest selling point. There are manyprolific and enthusiastic GNU/Linux writers: Kyle Rankin and MarcelGagne to name but two. Let me add Scott Granneman to that list. He has asubstantial output both in treeware and in cyberspace. His latest offering _Linux Phrasebook_is 382 pages of wholesome command line goodness. Every command is givena robust workout by way of those vital examples and whether you are a beginner or anintermediate user you are sure to discover some little nugget you didn'tknow. This book may be small enough to fit in your pocket (or, in my case,accompany me on the exercise bike!) but it covers all the familiar basesyou would expect: file attributes, file navigation, permissions,ownerships, networking (including wireless), piping, less, more, grep,monitoring system resources, installing software' printing, filetransfer. You could do a lot worse than cite it as a prime example of how to sell the command line and that is why I decided to give it an honourable mention in this blog.

One of my favourites has always been the alias command. In some waysit is the perfect touchstone of the power of the command line andshowing and explaining it to the newcomer could enthuse them. Onceyou've worked in the virtual terminal and experienced the sheer powerand flexibility of it and seen the computer do your bidding it isexhilerating and you will never feel the same again about rsi-inducingclick and point. As Solon, the Athenian Lawgiver and lyric poet might havesaid: "Call no man happy who has not mastered the command line." You'rein control, not Bill Gates or Steve Ballmer. A moderate investment oftime will yield a disproportionate accumulation of power and control.After that, as Arthur Daly would say, the world is your lobster.

Any book on GNU/Linux which failed to include a chapter on softwareinstallation would be fundamentally deficient. You will be be relievedto hear that if you decide to shell out your hard-earned pounds ordollars for books like Linux Phrasebook you will not be disappointed but... well, there isa but and it is no criticism of the author. Software installation andpackage management is a big subject, and I mean big, very big. Wholebooks could be and have been devoted to it.

For example I'm currently in the middle of reading Michael Jang's_Linux Patch Management:Keeping Linux Systems Up To Date_ (PrenticeHall, 2006).It is one the admirable books in the Bruce Perens' OpenSource Series and you can do yourself a favour by pointing your browserat the website.In the true spirit of open source many of the books are free for (pdf)download under the OpenPublication License but please think about buying the odd book byway of giving back in return for so much given so freely.

Even Jang's book, which introduced me to some useful and powerful Yumcommands, is not definitive or exhaustive. Authors like Granneman do enough withApt-get and Yum to ease the reader into a complex, powerful and criticalarea. He recognises this and at the appropriate points in thetext inserts useful web references which will themselves lead on toother web-based sources and this should be the benchmark for all good books on the subject if newcomers are to be fully empowered GNU/Linux users.If you still need your graphical comfort zone and your havingone of those pig-out evenings when you just want to get that latestpiece of software on your machine sans alpha-geek customisation optionsand flags then there is always Synaptic, Gnome-Apt, Adept, Kyum,Portage, Yumex et al. GNU/Linux is all about choice and you can haveit all.

Books like this are a timely reminder that the command line mattersand why it matters. After you have read it you will know that GNU/Linuxwas written by people who knew what they were doing for people who wantto know what they are doing. Despite that it is a truism that theabsolute beginner will probably need to paddle around in the graphicalshallows before tentatively dipping a cautious toe in the deep end ofthe pool. HicSunt Dracones!

Like death and taxes the command line will always be with us - but atleast it is a positive good. Distros come and go, fancy graphicaldesktops fade in and out of view but the command line endures andtherefore there will always be a renewable audience for authors like Rankin, Gagne and Granneman. I foresee reprints for such authors and when they do cutdown a few more trees what about a generic title: "How I StoppedWorrying About The Future Of The Graphical Desktop and Learned to LoveThe Command Line". For those who like the infectious enthusiasm of Marcel Gagne but sometimes findhis style a little too effusively baroque, authors like Scott Granneman are a welcome antidote - less in your face, ironic, self-deprecating but alwaysreassuringly knowledgeable.

"We'll always have Paris", Humphrey Bogart said to Ingrid Bergman inthe iconic climax of Casablanca - and we will always have thecommand line. Here's looking at you kid!

Category: 
Tagging: 

Comments

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

>However, leaving aside the fact that GNU/Linux was often designed to run on fast and >stable on low end systems that Windows simply couldn't hack (no pun intended), even >old 486 systems,

Are you kidding me? My kubuntu box totally tweaked(window manager, services, suspend2) still runs dog slow on my PIII . xp on the otherhand literally flies!!

Tony Mobily's picture

Hi,

I feel it's my duty to respond to these comments as quickly as possible.

I have a dual-boot system right here (it's not mine, BTW), with XP and Ubuntu (not tweaked). Windows XP is generally less responsive than Linux - and that's BEFORE installing anti-virus software & C which will make it even slower.

Maybe you need more RAM? Or maybe something in your computer is not playing well with Linux. OR, try to install Ubuntu which in general seems to be less memory-hungry.

Merc.

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

I'm not sure KDE (kubuntu) was meant for low end systems... Try a desktop environment like XFCE (xubuntu) or ditch the desktop environment and use only a window manager (such as enlightenment). With out saying exactly what tweaks you're making, your post doesn't really add much to a discussion and comes off as flame bait.

One thing though, Linux is more memory hungry than CPU hungry... I can run enlightenment on my 400Mhz computer and it runs great; this box has 384MB RAM though.

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

Gary Richmond writes: "Despite that it is a truism that the absolute beginner will probably need to paddle around in the graphical shallows before tentatively dipping a cautious toe in the deep end of the pool."

A couple years ago Richard Wareham wrote an interesting article refuting that view. I won't attempt to do his article justice in the brief space of this comment, but his basic thesis was that the CLI is better matched to how humans go about their non-computing life and that learning CLI first can give you a sense of mastery over the computer before you are forced to deal with the baffling array (sometimes literally!) of options that GUI interfaces frequently confront you with. I think it is well worth a read:

http://www.osnews.com/story.php?news_id=6282&page=1

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

Another excellent book for users who want to master the full potential
of the shell and basic command line utilities is the latest edition of
Unix Power Tools, published by O'Reilly. If you want to show how commands can be used, and combined,
in all sorts of ways to solve a plethora of problems, this is the book to recommend. (It would be best for someone who already
knows the basics and is ready to tap into the full flexibility of the system).

Author information

Gary Richmond's picture

Biography

A retired but passionate user of free and open source for nearly ten years, novice Python programmer, Ubuntu user, musical wanabee when "playing" piano and guitar. When not torturing musical instruments, rumoured to be translating Vogon poetry into Swahili.

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!