Slashdot Mirror


Has the Command Line Outstayed Its Welcome?

dgharmon writes "The Command Line Interface has its uses, acknowledged Mobile Raptor blogger Roberto Lim, but no piece of technology targeted at the consumer market should ever require that something be done via CLI, he says. Keep it as an option or you can take it out all together. 'If it is there, it should just be there for the IT people or tech support to use when you encounter a problem.'"

45 of 1,134 comments (clear)

  1. really?? by Anonymous Coward · · Score: 5, Insightful

    Guy is a fucking moron. Thats all.

    1. Re:really?? by TehNoobTrumpet · · Score: 5, Insightful

      Why would any end user care at all about the CLI? They want an easy to use interface, and a CLI is exactly not that, especially in the realm of mobile apps, possibly the largest growing sector of software development these days

    2. Re:really?? by xystren · · Score: 5, Insightful

      I normally don't agree with AC, but I think this one hit the nail on the head.

      Why is the command line interface still there? Simply because the GIU is lacking that particular feature. I'm also much faster on a keyboard than I am with a mouse/GIU. Sure, when GUIs are able to do what the command line can, then perhaps there may be a reason to phase it out - but until that happens, keep it there. Simply, if you don't want to use the command line interface, then don't. Pretty simple if you ask me. Just because you don't like it, don't call for it's assassination.

    3. Re:really?? by NFN_NLN · · Score: 5, Insightful

      I was going about my day until I read this article. Then I had to login to Slashdot just to flame this article.

      The #1 desktop OS finally, after years of being predominately GUI only, caved into CLI with powershell. They are now moving in the correct direction and this guy NOW believes a CLI is useless for regular users?

      Lets not forget who dominates the computer scene; computer nerds. I could walk grandma through screens of settings... OR I could just send a CLI script to check and/or set any options. Scripting and automation alone make CLI indispensable. And don't think end users won't be using these scripts to simply tasks. They may not be writing these scripts but they sure will be using them!

    4. Re:really?? by bleedingsamurai · · Score: 5, Insightful

      Why care about the command line? Because it is a whole lot easier then getting carpal tunnel clicking fifty different things when I could just type a couple commands and get the job done.

      Just because non-technical users are afraid of a particular interface does not mean you rip it out. After all, distros like Ubuntu, Debian, Linux Mint, Fedora, RedHat and I'm sure plenty of others make it very easy for Joe User to get his computing done.

    5. Re:really?? by Culture20 · · Score: 5, Insightful

      Guy is a fucking moron. Thats all.

      No, there's more to it than that. Roberto Lim is essentially saying "I never use an electric screwdriver when I need to open my TV remote, so no one except professional contractors should be allowed to use an electric screwdriver." Yes I do happen to be an IT professional, but I use command line loops for a lot of useful batch processing that "ordinary users" would love to use if they bothered to spend the time to look past the GUI.

    6. Re:really?? by zill · · Score: 5, Insightful

      but no piece of technology targeted at the consumer market should ever require that something be done via CLI

      He didn't say "CLI is useless". He didn't suggest taking out CLI. He says nothing should ever require CLI.

      If something requires CLI to work, it means every single user must type in at least one command on the CLI for the device to function.

    7. Re:really?? by Nutria · · Score: 5, Insightful

      Exactly.

      Ripping DVDs into ISO format is perfectly suitable for a GUI like brasero, because it's so slow.

      But transcoding dozens -- nay, hundreds -- of episodes of TV shows is simplified by the liberal use of bash, control structures, variables, at(1) and handbrake-cli.

      --
      "I don't know, therefore Aliens" Wafflebox1
    8. Re:really?? by marcosdumay · · Score: 5, Insightful

      Let me se:

      1 - Google gives me a prompt;
      2 - I type something;
      3 - Google interprets and show the results;
      4 - Google prompts me again.

      Ok, steps 3 and 4 are somewhat merged, but all of them are present. What is the difference, really?

    9. Re:really?? by tragedy · · Score: 5, Insightful

      I would say that a pretty large percent of Excel usage involves mis-using it as a database program instead of a spreadsheet program.

    10. Re:really?? by SharpFang · · Score: 5, Informative

      Maybe CLI should not be required. But CLI should always be available.
      I can understand a newbie getting scared of big black empty screen. But the newbie can overcome the fear, learn and use that skillfully.
      On the other hand, I will never overcome anguish and frustration of repeatedly clicking through the same "Add User" wizard of BackOffice (Small Business Edition) mandated for schools, as I was trying to add four classes of students, each requiring manually entering the same data over and over, roughly 3 minutes per user. Done with cli+adduser command or config file+text editor this would take up to 10 seconds per user. And after a hour of searching for options to automate the process, I arrived at a page where I learned "Batch user addition is not available in Small Business Edition. You need Enterprise edition for this option to work."
      But the GUI was so much more intuitive!

      --
      45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
    11. Re:really?? by Yobgod+Ababua · · Score: 5, Insightful

      Maybe you want to edit 40,000 photos to reset their aspect ratio and resolution, and add a flat color border.

      The CLI command to do this is easy. Clicking on multiple menus 40,000 times is not.

    12. Re:really?? by msauve · · Score: 5, Insightful

      "A CLI requires a very specific (typically very unforgiving) format"

      That "I" in "CLI?" It stands for Interface. You're confusing the interface with the application.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
  2. Oh, this won't end well... by pushing-robot · · Score: 5, Insightful

    Mod headline -1, flamebait.

    (and the summary is silly, as well—how many popular software products today actually require the end user to run terminal commands?)

    --
    How can I believe you when you tell me what I don't want to hear?
    1. Re:Oh, this won't end well... by QuasiSteve · · Score: 5, Interesting

      how many popular software products today actually require the end user to run terminal commands

      Thankfully, not many.

      On the other hand, very thankfully many CAD applications and the like do have a 'command line'. Not a terminal one, but one built into the GUI.
      The reason this is 'very thankfully' is because 1. some things really are just easier when typed in, and 2. it forces the developers to make everything that's doable through the UI, no matter how awkwardly, doable in the command line.
      The latter is very important when you consider the potential for macros, batch operations, more full-fledged scripting, etc.

      If anything, more applications should have command lines.

      I realize the article is more about the main CLI, though - and the modifier "required".. in which case I agree, the CLI shouldn't really be required. It's just damn nice it's there when you want it.

    2. Re:Oh, this won't end well... by blind+biker · · Score: 5, Interesting

      If anything, more applications should have command lines.

      This. Fucking, THIS!
      All our scientific equipment (that is controlled by a PC, which means 90% of them) has a GUI. And a host of bugs or user errors related to the GUI. And then, contacting the vendor and getting support is a nightmare, with a GUI. My dream is that all of these devices get a CLI so I can just issue unambiguous commands of the type

      set O2FLOW 65
      set SF6FLOW 200
      move sample TEST1 react_1
      set DCPOWER 50
      process 3000s
      start

      That would be also scriptable, flexible, powerful, and as I said, unambiguous and easy to debug.

      --
      "The agriculture ministry is not in charge of Gundam" - Japanese ministry official.
    3. Re:Oh, this won't end well... by ciggieposeur · · Score: 5, Interesting

      I had a scientific instrument that cost $70K ship with an embedded CPU running stock consumer-grade Windows 2000 with a massive 100-pin plug that included wires for keyboard, vga, mouse, and ethernet and a 50' cable. For an underwater application that was supposed to be "automated". Yes, their idea of automation was to put their craptastically bad GUI app in the Startup folder and have someone use a full KVM to get shit started. Oh, and the ethernet plug had an issue such that only 3 of the 4 wires could connect.

      All I wanted was: power up, collect sample, transfer data, power down. Instead, I had to write multiple programs in Win32 to simulate mouse and keypresses to get the program to "take sample", re-wire the ethernet to 3-wire RS232 and run Kermit as a daemon, and a 2000-line Perl monitor to check available battery power and issue the shutdown commands if things were getting tight, or just kill power anyway and hope to God that when it came back up it wouldn't be stuck in chkdsk expecting user input.

      The crazy thing is that they are still in business all these years later.

  3. Three words: by Orp · · Score: 5, Insightful

    No. Fucking. Way.

    --
    A squid eating dough in a polyethylene bag is fast and bulbous, got me?
  4. And what are you supposed to remotely?? by desertfool · · Score: 5, Interesting

    Sometimes you have to have a user ping something, telnet to something. I know it sucks and it is hard, but basic connectivity tests are what you need. /Love using AppNeta's PathView so I don't have to do this much anymore. //Just need the company to get more testing equipment.

    --
    Just a dude. Stuck in IT.
    1. Re:And what are you supposed to remotely?? by zenyu · · Score: 5, Insightful

      Rhetorical question: Have you ever tried to tell someone over the phone how to navigate around a GUI?

    2. Re:And what are you supposed to remotely?? by Teresita · · Score: 5, Informative

      Okay, it's a race, you sit there on that Windows 7 box with MP3s scattered all over the drive, round them up with your mouse and move them to this USB stick.

      I'll do the same thing with CMD.exe.

      xcopy c:\*.mp3 g:\ /s
      del c:\*.mp3

      I win!

    3. Re:And what are you supposed to remotely?? by thegarbz · · Score: 5, Informative

      "Yes I have. I have a mother and she's a pain even when you're standing next to her. You pick it up fairly quickly.

      The key is to help guide the eyes and always confirm that the expected outcome has happened. It's not a case of saying "Double click network and then click status" It's a case of "Do you see the little icon that looks like ...., now double click it, did you see the window pop-up?, good now at the top of the window there will be a few tabs one of which will say status, now click that status tab..."

      It's simple once you adapt to it. Mind you the commandline is not without its problems either. There's a lot of users out there who don't know what the "-" symbol is. Is it a dash, is it minus? Not to mention the many people who don't know which slash is a forward slash and which one is the backslash.

  5. Do not post replies. by Joce640k · · Score: 5, Insightful

    Article = flamebait.

    --
    No sig today...
    1. Re:Do not post replies. by msobkow · · Score: 5, Insightful

      But we can fix the article's author. They just need to:

      apt-get install functioning-brain-cell

      --
      I do not fail; I succeed at finding out what does not work.
  6. GUI? by xlsior · · Score: 5, Insightful

    The GUI - Making easy things easier, and hard things impossible. (Seriously, there are still a lot of command line tools like sed and awk which are absolutely invaluable, with no real non-commandline alternatives)

    1. Re:GUI? by Phroggy · · Score: 5, Interesting

      When you use sed and awk you're beyond the reach of basic use of software and are really starting to head down the programming route. I guarantee there is no normal end user in the world, even linux users who even know what sed or awk is let alone can figure out the arcane (to the novice) syntax.

      Guess what? Whenever you use formulas in Microsoft Excel, you're starting to head down the programming route. People do this all the time.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  7. Is that even worth a discussion? by Anonymous Coward · · Score: 5, Insightful

    The light-switch is one of the end-user interfaces for electricity in the house. The wiring behind it is better left to the experts. It's dangerous for the non-initiated to fiddle with it.

    Same for the command line. Graphical user interfaces have become the de-facto end-user interface to modern computing devices, to information, to the Internet, etc. The CLI exposes some of the wiring behind it. No need for end users to mess with it or to have to understand it. It can be confusing for them or even dangerous.

    The sooner software developers realize this, the better it is for everyone involved.

    It may be sad that today's users are not introduced at the same level to the technology that many of us were decades ago, but that's the way things go. We don't expect to wire up our house ourselves, or build our own generators or electric engines. We shouldn't expect that a product for the masses should require in-depth knowledge or even expose an interface that is not really useful for every day users.

  8. Betteridge's Law of Headlines... by Shalian · · Score: 5, Informative

    I invoke Betteridge's Law of Headlines here.

    No.

  9. Search (as most people use it) not CLI by SuperKendall · · Score: 5, Insightful

    CLI is the defacto interface for Google searches. People use it everyday and all day long. Nobody complains that it isn't intuitive.

    Typing in a few keywords is not CLI. That's just data input in response to a prompt.

    Using the more complex search modifiers does make it more like CLI use as you are driving behavior - but most people do not do that.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:Search (as most people use it) not CLI by Anonymous Coward · · Score: 5, Insightful

      Google understands:

      y = 3x + cos x
      movies 12345 (or any zip code)
      light years in inches
      taco bell in los angeles ca
      valentine's day

      Building a GUI that does that, and can still find you cat pictures in an intuitive fashion without using the equivalent of a command line is just not going to happen. Yes, it takes a little effort to learn a command line but at some point a bunch of gestures, buttons, and drop down's just don't cut it.

    2. Re:Search (as most people use it) not CLI by geekprime · · Score: 5, Interesting

      >Typing in a few keywords is not CLI. That's just data input in response to a prompt.

      Have you used windows 7? the search bar searches programs and enter executes them, I'd say that 85% of my customers are typing excel instead of mousing through multiple menus.

    3. Re:Search (as most people use it) not CLI by PopeRatzo · · Score: 5, Insightful

      Typing in a few keywords is not CLI

      But typing in a filename is?

      The article is pretty moronic. The author seems to be saying "CLI should be there, but should be hidden." Well, it is pretty much hidden. Many users go through life completely oblivious of the command line. Hell, you have to go three or four deep in Windows just to find it (unless you've made a shortcut as I have). He goes on to say, "If the command line is going to be there, it should only be used by tech support". Or something. That's even stupider.

      How many people, sitting at computers today, got a computer to do one thing and found out they could do something else completely? I remember my first personal computer back in the 80's. I just wanted a word processor and today half my income is generated using a computer as a digital audio workstation. And I've had to use that CLI more than a few times getting here.

      There is such a desire by the elites to make personal computers just a shopping interface. It's when I think about that desire that I find myself being a lot less critical about "the dumb masses", because when it comes down to it, they want us dumb and will go to great lengths to keep us dumb. I have a lot less anger toward ignorant Mr and Mrs America sitting and watching American Idol and Fox News because the amount of money and energy and sheer brute force that's being exerted by the elite god-kings of our society to get those people to do that and stay ignorant is simply immense. Hell, there's a political party that shall remain nameless who has adopted a platform officially opposing the teaching of critical thinking skills.

      So...fuck 'em. Keep the CLI and stop being angry at the ignorant. To a great extent, it's not their fault. We should be decent to everyone, whether they're ignorant or they want CLI. In the former case, as I say, it's not their fault. And in the latter case, well, one uses the best tool for the job, no?

      --
      You are welcome on my lawn.
  10. Re:He's right. by pushing-robot · · Score: 5, Insightful

    My only issue (other than the inflammatory headline) is that these are lessons that were learned thirty years ago. Do we really have to remind developers that non-experts prefer point-and-click interfaces that elucidate the program's functions or that command lines are efficient and allow greater nuance?

    A GUI is to a CLI as gesture is to speech. One is multidimensional, pictorial, concrete. The other is unidimensional, verbal, abstract. Each has an advantage at certain tasks: Using a computer that only works visually is like trying to convey War and Peace through mime. Conversely, to a user untrained in a particular application, accomplishing tasks via a command line is like trying to have a meaningful telephone conversation with an aborigine.

    Which is better? I don't care—give me both, thank you very much. Visual interfaces are indispensable as they can display complex information in an intuitive and language-independent manner. But please give me an interface to talk to the application and string programs together with all the grammatical complexity of a command line.

    --
    How can I believe you when you tell me what I don't want to hear?
  11. Roberto Lim is NOT Roblimo by Cow+Jones · · Score: 5, Funny

    Damn it, this really bothers me. I'm usually very careful to check my theories and hunches before I post a comment, but I really messed that one up. Now instead of modding me down, like I asked, people are modding it up. Apologies to Roberto Lim and Robin Miller, and anybody who read what I wrote but missed the AC's correction.

    I want to blame the Euro soccer finals and copious amounts of alcohol, but I should know better than to drink and post.

    --

    Ah, arrogance and stupidity, all in the same package. How efficient of you. -- Londo Mollari
  12. Re:He's right. by webnut77 · · Score: 5, Insightful

    The command line is great for people that have memorized all the commands, know exactly what they want to do, and can run the operations in their sleep. But for everyone else it's a hinderence.

    How could this post be +4 insightful?

    If you have two screwdrivers in your toolbox but only ever use one, the unused one is NOT a hinderance. Others have a need for that 2nd screwdriver.

    Look, most people have working legs so all those wheelchair ramps are a hinderance.

    You should NEVER have to go to command line.

    Then a lot of what you can do with a program will never get coded in a GUI. Even Windows has regedit!

    Look past the end of your nose.

  13. actually, thats exactly what CLI is by decora · · Score: 5, Insightful

    please remind us where the word 'prompt' comes from... the 'bash prompt' or 'shell prompt'.

    you type 'key words' into it and get responses.

    why does it work? because its an anlogue of verbal communication. .. which humans have been doing for 10,000+ years.

    as opposed to 'poking square things that look like candy' which humans have been doing for 20 years.

    1. Re:actually, thats exactly what CLI is by SilverJets · · Score: 5, Insightful

      Just because you type words into a search box, that doesn't make it a CLI

      To call the Google search box inside a GUI object (like a web browser) a Command Line Interface shows complete and utter ignorance to what a CLI actually is.

      On a CLI you are actually issuing instructions (hence the words Commands in CLI) to the OS commanding it to do something. In a Google search box you are typing terms or key phrases to be used as parameters of a search.

  14. lol hilarious ignorance by decora · · Score: 5, Insightful

    since 99.9% of users will not have the permissions to start up an access database, and the "IT crew" will be too busy / underfunded to help them, they will revert to sharing Excel files on sharepoint.

    furthermore, since the vast majority of people in these corporations have never been trained in database stuff, and the company will not pay to train them, excel is something that is essentially something 'anyone can use' the basic features of and still kind of understand whats happening without much training.

  15. Re:Just what they want Linux to become ? by MrEricSir · · Score: 5, Insightful

    "These days"? Get real, Microsoft has NEVER had a consistent user interface across their applications.

    --
    There's no -1 for "I don't get it."
  16. Re:Just what they want Linux to become ? by msauve · · Score: 5, Funny

    "Microsoft has NEVER had a consistent user interface across their applications."

    You're forgetting the days of the "Blue Screen of Death." That was pretty consistent.

    --
    "National Security is the chief cause of national insecurity." - Celine's First Law
  17. Re:Just what they want Linux to become ? by bhcompy · · Score: 5, Insightful

    I would say from the release of Windows 95 to the release of Office 2007, they were pretty much within their own standard style guidelines for GUI more or less across the board. That would be 12 years, which is a fairly significant amount of time in the computing world.

  18. Re:Just what they want Linux to become ? by LordLimecat · · Score: 5, Insightful

    another M$-Windows-like kludge?

    Last I checked MS is pushing Server Core (aka GUI-less server install) and powershell everything.

    You were saying?

    PS: the registry isnt a bad idea, it just has a lot of cruft. Most anti-registry sentiment is based on ignorance.

  19. Re:Just what they want Linux to become ? by nighthawk243 · · Score: 5, Funny

    Just the other day a Linux distro decided that they want to do away with "Upgrade Kernel Without Reboot" feature of Linux

    Now this guy wants to do away with CLI

    Just what do they want to turn Linux into - another M$-Windows-like kludge?

    While they are at it, why don't they import the "Windows registry feature" into Linux, and/or turn Linux into a proprietary closed-sourced OS??

    Why can't they just leave Linux alone?

    Well... given that I reboot about as often as I get laid, this should increase the number of times I get laid in a year. Where do I sign up?

  20. Re:Just what they want Linux to become ? by dna_(c)(tm)(r) · · Score: 5, Informative

    Linux is great for systems that will be managed by folks who do Linux, and its great when those folks can set up a locked down system for someone else. But as an every day replacement for Windows, to be managed and run by average Joe? Yea, not quite yet.

    Not even Windows can be adequately managed by Joe and Jane Average. You need a minimal level of understanding in order to keep any system running - not even talking about keeping it safe. I even get silly questions from the Mac users...

  21. Re:Just what they want Linux to become ? by RobbieThe1st · · Score: 5, Interesting

    Nah, the real problem with Linux is the same thing it's been for years - lack of critical applications. Sure, these days, any web-based applications will work like a charm... but it's things crucial to your business - in my case AutoCAD, MasterCAM and our Infor ERP system - that prevent Linux on anything but the most basic of machines.
    Once those apps get ported to Linux, I think we'd be running it within a couple of years, simply due to the lack of cost and stability(and excellent support for out-of-date hardware).
    Users, well, they'll learn whatever it takes to get the job done. CLI is great for some things, horrible for others. GUI is great for some, horrible for others. It shouldn't be one or the other - blend the two. Have a good gui with common options, and a CLI box that can be pulled up for access to the complex and arcane extra features(which perhaps only 100 people in the world use, but for them it's critical).