Slashdot Mirror


Ask Slashdot: Command Line Interfaces -- What Is Out There?

Mars729 writes "GUIs are walled gardens in that features available in one piece of software is not available to other pieces of software. However, there is software out there with command-line options that can make software features accessible to power users and programmers. Some important ones I have uncovered are:
  • Exiftool: A command-line application that can read/write almost any kind of metadata contained in almost any filetype
  • Imagemagick: This and similar software like GraphicsMagick is a full-feature toolkit for displaying, converting and editing image files.
  • Irfanview: Like Imagemagick but faster, although it has much fewer features.
    FFMpeg: For video files
  • VLC: For audio and video files
  • Aspell: A command line spell checker
  • Google Static Maps API: A URL with coordinates, markers, zoom levels and other options to show a custom map from Google Maps. (I just uncovered this: no need to learn KML!)

Less useful but still useful are command shells. These provide file management mostly. I believe some of them may allow for sending and retrieving email messages. Also useful but less accessible and with a steeper learning curve are software with APIs and scripting. Examples would be Visual Basic for Applications in office software and groovy scripting for Freeplane. What else is out there?"

383 comments

  1. systemd is there by Anonymous Coward · · Score: 2, Informative

    You all will love to use

    systemctl
    journalctl

    The first shows all services running on Linux

    The last shows all binary logging on Linux

    Get used to those commands because its the defacto standard now.

    1. Re: systemd is there by Anonymous Coward · · Score: 0

      Thank,
      cli is amazing and it would be apparent if some of the 'omg did he really just say that crowd' helped out newbies instead of ranting

    2. Re:systemd is there by Anonymous Coward · · Score: 1

      "command not found: systemd"

      Doesn't look like it's preinstalled on Ubuntu 13.10. Any way to get this working?

    3. Re:systemd is there by philip.paradis · · Score: 1

      Here you go, lil buddy, just compile and install away! Make sure you specify /usr/local/wtfbin for the target install dir. Cheers and happy new year!

      --
      Write failed: Broken pipe
    4. Re:systemd is there by BrokenHalo · · Score: 1

      Doesn't look like it's preinstalled on Ubuntu 13.10. Any way to get this working?

      You would do better to read up on why some distros elect not to use systemd, despite the fact that it is becoming quite popular in some quarters. For my part, I consider it to be an unnecessary complication, so am happy that my preferred distro (Slackware) still elects not to implement systemd by default.

    5. Re: systemd is there by Anonymous Coward · · Score: 1, Insightful

      cli is amazing and it would be apparent if some of the 'omg did he really just say that crowd' helped out newbies instead of ranting

      What? If you want to learn then it is up to you to learn. You clearly have access to the internet, and time to waste on slashdot. You should be using your time to learn rather than complaining that someone isn't teaching you.

      If you want to learn something then ask a specific question. "Teach me about command lines" is a useless request because the answer will take years and no one will want to spend that much effort teaching you anything if you can't be bothered to make the effort to teach yourself anything.

    6. Re: systemd is there by Ceriel+Nosforit · · Score: 1

      If you want to learn something then ask a specific question.

      This is the fallacy which causes government inefficiency. In order to know what to ask you need to know what your answer is.

      ...no one will want to spend that much effort teaching you anything if you can't be bothered to make the effort to teach yourself anything.

      Were you home schooled and still inexplicably separated from the rest of society? No? Wait, you're just being too lazy to properly formulate an argument, aren't you?

      --
      All rites reversed 2010
    7. Re: systemd is there by crutchy · · Score: 1

      if someone wants to bash, they should be prepared to be bashed ;-P

    8. Re: systemd is there by O('_')O_Bush · · Score: 2

      The article OP did not offer a respectable salary and/or legislation mandating any of us teach him.

      Your counterpoint about about teaching seems far less thought out than GP's original remark.

      --
      while(1) attack(People.Sandy);
    9. Re: systemd is there by Ceriel+Nosforit · · Score: 3, Informative

      You don't get a salary for educating the children. You get culture, pride, REAL security, population control, sustainable development... Just what am I listing here! You're a goddamaned idiot, aren't you? Admit it!

      --
      All rites reversed 2010
    10. Re: systemd is there by Anonymous Coward · · Score: 1

      Debian just switched to use systemd. Furthermore the guy behind KWin wants to use components of systemd as hard requirement in upcomming KDE versions. You can go on G+ and read there:

      https://plus.google.com/app/basic/stream/z13fdnvplxrcwfumv224cvuapuylid3ww04

    11. Re:systemd is there by Anonymous Coward · · Score: 0

      "command not found: systemd"

      Doesn't look like it's preinstalled on Ubuntu 13.10. Any way to get this working?

      Install Suse 12?

    12. Re:systemd is there by vtcodger · · Score: 1

      I've been through most of this thread and see a lot of gratiutious nastiness, a bit of serious discussion of GUIs vs CLIs, and some humor. But few answers to the original question. Anyway, there are a great many little and not so little tools out there. It's unclear what OS the OP is using, but if he/she can get access to a Unix system, there are a zillion command line tools in the /bin and /usr/bin directories (probably. I imagine there are distributions where the binaries have been "improved" to some other location(s)).

      On unixlike systems "man whatever" and/or "info whatever" and/or "whatever --help" will likely get some usage information (which may be a bit incomprehensible in some cases). Many -- by no means all -- of these programs are available on multiple platforms

      some useful websites for little tools -- not that all the stuff there is multiplatform,useful, or even usable
          - https://github.org/
          - http://sourceforge.net/
          - http://www.onethingwell.org/
          - http://tinyapps.org/blog/

      --
      You can't see ANYTHING from a car, You've got to get out of the goddamned contraption and walk...Edward Abbey
    13. Re: systemd is there by Anonymous Coward · · Score: 0

      Is /sbin in your path ?

    14. Re:systemd is there by robot5x · · Score: 1

      yeah I just don't get what this whole story is about or what OP is actually asking.

      a complete list of every useful CLI program? really??

      --
      Hej! Nasi tu byli!
    15. Re:systemd is there by jalopezp · · Score: 1

      Where can I read about why some distros elect not to use systemd? The wiki says that debian does not implement it because its non-linux ports would not work with systemd. Surely you mean something else?

    16. Re: systemd is there by luxifr · · Score: 1

      You don't get a salary for educating the children.

      Yeah, it's commonly known that teachers don't get paid anything as they live on the cozy, warm fealing of pride when they advance culture by educating children. Anyone who says otherwise must clearly be a "goddamaned"[sic!] idiot.

      But seriously though: Who voted this informative?

  2. What is this? by Anonymous Coward · · Score: 4, Insightful

    This isn't worthy of being a story, we all grew up using command lines.

    1. Re:What is this? by weilawei · · Score: 4, Informative

      I'd like to bash the submitter. Command shells less useful my ass. Pretty much the entire *nix world is built around shells and files, with variations on a theme thrown in (pipes, sockets, etc.). Welcome to what the rest of us have known for decades.

    2. Re: What is this? by Anonymous Coward · · Score: 3, Informative

      Your way of thinking needs an upgrade. Soon everyone needs to understand the concepts of systemd. That means your overall usage of grep, sed, awk, etc. will decrease. Wayland will bring another change in your life. Hope you welcome these. Oh I forgot, you won't be asked :)

    3. Re:What is this? by Freshly+Exhumed · · Score: 0, Troll

      Lately we've had egregious dupes, insipid, noobie-focused "what you need to do to your Windoze computer" items, a couple of my own submissions, then this... THIS! I demand that /. mods swear off what they've been ingesting over the holidays and speak to a kind social worker who will offer them a donut and tell them to stick closer to church-oriented activities.

      --
      I deny that I have not avoided attaining the opposite of that which I do not want.
    4. Re:What is this? by Anonymous Coward · · Score: 1

      This isn't worthy of being a comment; we're not monolithic.

    5. Re:What is this? by Freshly+Exhumed · · Score: 1

      Okay, how about Monotheistic? Monomaniacal? Mononucleosistic? Never mind, you aren't one of the ones with a sense of humour, but have a chuckle anyways.

      --
      I deny that I have not avoided attaining the opposite of that which I do not want.
    6. Re:What is this? by Anonymous Coward · · Score: 0

      It's Slashdot. If you didn't grow up using command lines, then you don't belong here. Go off to one of the wannabe, pseudo-techie sites like Lifehacker or Gizmodo and stop diluting the content here.

    7. Re:What is this? by erikkemperman · · Score: 2

      Pretty much my initial response, too.

      But you know what, I hadn't made any realistic new year's resolutions actually, but now I am thinking it would be nice if instead of the reflexive elitist slashdot reaction to new users (yes I wrote that out in full) let's just try to help these folks feel at home and somewhat supported in our little world.

      My 2 cents: learn shell scripting. It's a great way to apply the shell commands you've already learned and a very natural way to learn some more (control structures, loops, mostly).

      --
      Gosh, thanks. That must be why the other ships call me Meatfucker -- GCU Grey Area (Eccentric)
    8. Re:What is this? by Anonymous Coward · · Score: 0

      I grew up wanting to learn, is that welcome here?

    9. Re:What is this? by rolfwind · · Score: 0

      This isn't worthy of being a story, we all grew up using command lines.

      No we didn't. You may have, I may have, but there are plenty of programmers or budding programmers that have hardly ever touched one.

      This story for /. is way better than most of the fluff usually here, so I'm confused why you would bash it down.

    10. Re:What is this? by Anonymous Coward · · Score: 0

      so not worthy! where's all the lame end-of-year / new year's stories and predictions that are supposed to grace the front page of slashdot on this day?

    11. Re: What is this? by Anonymous Coward · · Score: 5, Insightful

      It appears that lots of people recently have been condemned to reinvent Unix, poorly.

    12. Re:What is this? by Pseudonym+Authority · · Score: 0, Flamebait
      No, fuck off. If you want to be spoon fed, go to stackoverflow and get mostly-correct answers from unemployed people who will never flame you, no matter how idiotic your questions are. Well actually, a question like "Holy shit I found out that I can use the keyboard to start my music app, what programs also have this feature" would probably get closed for being completely fucking retarded there too. If you actually wanted to learn, you would pick up a damn book (just about any book would be educational for the submitter (which is most likely you)) or use Google to actually check and see if those mythical CLI email programs exist.

      Less useful but still useful are command shells. These provide file management mostly. I believe some of them may allow for sending and retrieving email messages.

      Holy shit, you can start off with DOS for Dummies and work your way up from there.

      But anyway, I will attempt to answer your question:

      What else is out there?

      Every program on every major operating system can be launched from the shell, and 99% of these can accept command line arguments. Is there any other vague, poorly-thought-out questions you'd like to ask?

    13. Re:What is this? by Ceriel+Nosforit · · Score: 0

      So share what you learned! Or are you stupid and ugly!?

      --
      All rites reversed 2010
    14. Re:What is this? by tlambert · · Score: 2

      This isn't worthy of being a story, we all grew up using command lines.

      At least one of those programs is Windows-only, and all the rest have Windows versions, and Visual Basic is Windows-only.

      I'm pretty sure he has little or no familiarity with the UNIX programming environment, and he's not even aware of COM-based programming using third party libraries and components on Windows well enough to know that you can in fact script all Microsoft GUI products, and many third party products on Windows use the same techniques making them fully scriptable as well.

      This isn't the first time Mars729's called GUI's "walled gardens", and it's not the first time he's posted erroneous info about their scriptability, but then he *is* using Windows. He posted a similar comment to the "How Ya Gonna Get 'Em Down On the UNIX Farm?" thread 4 days ago.

    15. Re:What is this? by Anonymous Coward · · Score: 0

      BS. Nobody can call themself a programmer if they haven't used a command line.

      This story is like giving instructions on how to breathe.

    16. Re:What is this? by gl4ss · · Score: 2

      it's not really "using the command line" unless you're using the line ... to command things, yourself.

      if its automation and communications between system components, it's just protocol of some sorts.. could start saying that pop3 is a commandline then too

      --
      world was created 5 seconds before this post as it is.
    17. Re:What is this? by Anonymous Coward · · Score: 0

      If you're a programmer and you've "hardly ever touched" a command line, well, that is on you. Command lines are easy to get to on all major platforms (you know, the ones that programmers write software on).

      Command line interfaces for software products have nothing to do with being a programmer. Being able to type a command rather than click a button is a good skill to have, but let's not get carried away and claim that issuing a command or setting a program value from a command line is programming.

    18. Re:What is this? by HalAtWork · · Score: 1

      Some didn't and are just getting into Linux now, where it's Gnome and KDE and LiveCDs. How about helping some newbies?

    19. Re:What is this? by Anonymous Coward · · Score: 0

      I know it's early, but I'd like to nominate this story for "Worst /. Story of 2014". I know it doesn't stand a chance against the posts about the new /. design, but it certainly deserves consideration.

    20. Re:What is this? by hsa · · Score: 4, Informative

      OP is just discovering the command line and finding out, that you can actually do almost anything with it.Don't bash his learning process (pun intended).

      Take a webcam picture:
      streamer -f jpeg -o image.jpg

      Do magic with that picture:
      convert image.jpg -colorspace Gray image_gray.jpg

      And do check out rest of the ImageMagick:
      http://www.imagemagick.org/

    21. Re:What is this? by rolfwind · · Score: 1

      You haven't worked with corporate VB programmers too much, have you?

    22. Re:What is this? by Anonymous Coward · · Score: 0

      Rather, they are outside of parent's definition of programmer.

    23. Re: What is this? by Anonymous Coward · · Score: 0

      True.
      I didn't grow up using the command line. I got my comp sci degree without using "command line interfaces". I became a programmer when I started using the command line. I thought this was a site for programmers?

    24. Re:What is this? by K.+S.+Kyosuke · · Score: 0

      and tell them to stick closer to Church-oriented activities

      Hah! Like that would ever happen with Unix people. They're all into this gay C thing and shun Lisp. (And they don't even have that infinite tape in the first place.)

      --
      Ezekiel 23:20
    25. Re:What is this? by gwolf · · Score: 1

      The fact this comment is uttered by an eight-digit user does not make it any less true.

    26. Re: What is this? by Anonymous Coward · · Score: 0

      Systemd can search a file, extract a specific portion, and do search and replace on it?

      Sorry I fail to see why systemd will decrease my usage of grep, sed, awk etc

    27. Re:What is this? by geoskd · · Score: 4, Interesting

      You haven't worked with corporate VB programmers too much, have you?

      As someone who has done an unfortunate amount of "corporate VB programming", I can say several things with certainty.

      1) Anyone who must admit that they have more experience with VBA than anything else should not claim to be a programmer. At best, the title script kiddie should apply.

      2) I am actually functionally dumber for having learned VBA.

      3) The world will be a better place when Microsoft is dead and buried. VBA was a bad idea that looked really good on paper. It gave a large number of people the ability to write quick and dirty tools for doing things in spite of the fact that these people had no business writing software in the first place. In the short term, these "programmers" filled a direct need, but in the long run, they have created a nightmare of sustainability that costs more to maintain / recreate than it ever saved in the first place. I have spent entirely too much time debugging and rewriting VBA tools because some unqualified hack made a tool to save themselves time on processing reports, and now I have to waste huge amounts of time fixing it to be robust, when they should have just hired a programmer to do it right in the first place. I find that most of the time its best to just scrap what was written and start over rather than try to follow the existing schizophrenic and undocumented code.

      --
      I wish I had a good sig, but all the good ones are copyrighted
    28. Re:What is this? by dgatwood · · Score: 4, Informative

      And do check out rest of the ImageMagick: ...

      And if you happen to be using OS X, also check out sips(1). It does much of what ImageMagick + DCRaw does, but a lot faster.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    29. Re: What is this? by Anonymous Coward · · Score: 0

      Someone has confused systemd with emacs

    30. Re:What is this? by DexterIsADog · · Score: 1

      Well, like you, I did grow up using command lines, but check your six; at least one generation of serious IT people did not. And the ranks of those of us who did are rapidly dwindling.

    31. Re:What is this? by Anonymous Coward · · Score: 0

      No way. If you didn't spring fully-formed, fully-informed, and able to use the command-line perfectly, from the forehead of some deity, then you don't belong here. I mean, the rest of us here did. Seriously. There's never been a time when we didn't all know everything (except for you). Otherwise we'd just be admitting to a weakness, right?

    32. Re:What is this? by Ceriel+Nosforit · · Score: 2

      This story is like giving instructions on how to breathe.

      To meditate, observe your breath without controlling it.

      Do you think you know anything? You know nothing.

      --
      All rites reversed 2010
    33. Re:What is this? by i.r.id10t · · Score: 4, Interesting

      And based on the students I teach in my "intro to linux" class, a good 30% are dependent on GUIs and aren't capable of becoming half way competent in using a command line only system over a 14 week term.

      Typically, these are the same students that are in a networking track because "i'm good at helping grandma with facebook and I like to play world of warcraft" - not because they are curious about computers and networking

      --
      Don't blame me, I voted for Kodos
    34. Re:What is this? by Anonymous Coward · · Score: 0

      I've seen self-proclaimed linux-likers (windows admins dabbling in linux) suddenly praise powershell to high heaven, when if they really were any good with this linux thing like they said, they would never have suddenly seen the command line light--even though they were supposedly looking right at it.

      So yeah. Though submitter is actually right if you take his meaning like an application-specific command shell separate from the usual one, where you'd have to build some sort of expect contraption around it if you'd like to automate using it. Something like gpg --edit-key comes to mind. Arguably worse are devices that claim to provide a command interface that then turns out to give text-based menus, perhaps hard-code a vt100 (or "ANSI" or whatever) assumption, don't have a refresh screen function, that sort of thing, so that connecting via a terminal server means a guarantee to have a messed-up screen. The "improvement" on that was an extra embedded processor fronting that contraption with "linux", providing only a java-requiring web-interface. Name withheld to protect the guilty.

    35. Re:What is this? by msauve · · Score: 5, Insightful
      "could start saying that pop3 is a commandline then too"

      It isn't?

      locke:~# telnet 127.0.0.1 110
      Trying 127.0.0.1...
      Connected to 127.0.0.1.
      Escape character is '^]'.
      +OK Dovecot ready.
      user myname
      +OK
      pass mypass
      +OK Logged in.
      stat
      +OK 863 28261240
      retr 1
      +OK 3108 octets
      ...[email text]...

      Of course, what you'll quickly find is that the OP isn't the only clueless one. Other Internet newbies like Microsoft and Google have gone out of their way to make their customer's emails illegible.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    36. Re: What is this? by Anonymous Coward · · Score: 1

      Rather, change linux into something that has very little to do with Unix any longer, and along the way dragging other Unices down with it.

      If you care about Unix, then Poettering and the rest of the freedesktop.org crowd are spouting high proof bad, wrong, and evil.

    37. Re: What is this? by Anonymous Coward · · Score: 0

      man bash

      Now go, learn. Don't return until you have learned.

    38. Re:What is this? by shipofgold · · Score: 1

      You are missing the point of the OP. While not elegantly worded, the original request is valid....

      What are your secret CLI commands? These are the things that go INSIDE those bash scripts that make bash useful....Or maybe a bash construct that makes life super easy.

      A new F18 HTPC install that I just did has 1897 different commands in /usr/bin, and an F20 upgrade that has been in service for a number of years now has over 3300 "commands" in /usr/bin....While I like to think myself a BASH power user, I am guessing that I actually know only about 10-20% of those commands. I know that many of those commands start GUIs and are probably not useful as CLI. But there may be a nugget of gold in the other 70% that I have missed after all these years.

      My list is of useful commands:
      - "Handbrake-CLI" for converting videos. It uses ffmpeg under the hood, but I don't need to remember all those parameters...I could just script ffmpeg, but Handbrake-CLI has already done that.
      - "netcat" for just about anything over a network
      - "flite" (festival) for voice synthesis (although I just discovered espeak)
      - "sox" for converting audio files
      - "asterisk" for making outgoing voice calls (not strictly CLI, but I can trigger a synthesized outgoing voice call with a bash script)

      The one command I haven't found, that I want, is a speech to text command that will output on the stdout.

    39. Re: What is this? by Anonymous Coward · · Score: 0

      +5

      That less useful shell is equivalent to plumbing that links your water supply, water heater, sinks, toilets, and sewers.

      Having a toilet is great, but the plumbing makes it worth bringing into the house.

    40. Re: What is this? by Anonymous Coward · · Score: 1

      Which is perfectly understandable considering emacs' feature set.

    41. Re: What is this? by Anonymous Coward · · Score: 0

      That's your problem.

      My generation grew up wanting to keep learning. I would drive to a campus to use a NeXT, SUN, or SGI machine.

    42. Re:What is this? by Culture20 · · Score: 2

      My guess is that submitter writes commands sequentially into .bat, .ps1, .sh, or .csh files then double clicks the files to run them. Not knowing anything about loops or conditionals, submitter is happy to just use shell scripts to run commands and considers this the command line.

    43. Re:What is this? by hairyfeet · · Score: 3, Insightful

      Yes and that is why the GUI has been stagnant in Linux for the better part of a decade. hate on me ALL you want but anybody who is honest will admit its true, look at the file managers for just one example. The default is deep fried ass across the board. Fugly as fugly can be fonts, incredibly shitty icons...its like they went out of their way to make the GUI as ugly and nasty as they possibly could. And the whole OS has a disjointed "Meh lets just throw shit together" look as its pretty damned obvious nobody gives a rat's ass about the human interface guidelines. As much shit as Shuttleworth gets at least he tried to have a look stick across the system, its just too damned bad he gives Steve Ballmer a run for his money in the "no damned taste at all" dept because everything Jobs said about MSFT goes doubly true for Ubuntu. Ubuntu, an ancient word that means "We are totally colorblind".

      Having a great CLI is fine and dandy but sadly its become a crutch, you can completely remove CLI access from Windows and OSX and ya know what? The user would be fine,most wouldn't even notice that it was gone. Try removing access to the CLI for just one year in the Linux of your choice, I DARE you. You can't because 1.- Many of the distros won't even function without user access to the shell, as too many things are depending on CLI, and 2.- The first time you run into a problem the ONLY CHOICE you will have to fix it is "Open up Bash and Type"...that's it, that is all. Hell just ask for a non Bash solution and watch the howls of impotent rage! As an experiment I tried that very thing on a dozen forums with a wireless problem that would have taken all of 30 seconds to solve with the GUI in Windows. I was called every name in the book, had a dozen guys preach to me about how wonderful the church of CLI is, until finally one guy had the balls to admit the truth, there simply wasn't a GUI way to fix the problem!

      If there is anything that Android and ARM should have taught it is that the future is NOT some 40+ year old throwback to the age of disco UIs, its intuitive, easy to discover,and easy to learn is THE way of the future! Nobody but nobody is gonna want to sit there and type a bunch of arcane gibberish using a touch keyboard into a 5 inch screen,they are gonna want simple yet powerful GUIs to control these new marvels in their pockets. Linux SHOULD be at the forefront of this GUI revolution, after all its beholden to no corp, doesn't have to maintain backwards compatibility to please the masses, no reason why the next great GUI shouldn't come from Linux....except that too many have taken CLI as their religion, their way to "test the faith" and see if the user is "worthy" to be part of the little club.

      CLI will always have its place, in high performance servers where every byte counts, but even there the cost of a GUI is so trivial compared to what resources the boxes have it isn't funny. And you'll probably never come up with a better way to automate repetitive tasks than simply writing a script and letting the computer run, but its 2014 guys, time to accept that disco is dead and that if you aren't administrating a pile of servers or batch processing a thousand files there really should be NO reason to use a CLI at all. It should be there if you WANT to use it, but it should never ever be the case that you HAVE to use it, not on a modern OS anyway.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    44. Re:What is this? by Anonymous Coward · · Score: 0

      This isn't worthy of being a story, we all grew up using command lines.

      I think it's worthy of storyhood if only because it points out the not-frequently-recognized-enough wisdom that software with both easy interfaces for novices and casual users, and advanced, more powerful but complicated interfaces for experienced power users is often a good idea.

      Aspie note: I am not endorsing, requiring, mocking or denigrating either GUIs or CLIs for any particular user. I am stating that having both can have value in some cases.

    45. Re:What is this? by Anonymous Coward · · Score: 0

      Yeah, nice circular reasoning there. It sounds like something an unemployed loser living in his mother's basement would say as a pathetic excuse for why he's he's such a failure. You must read tons of books on Sartre, Nietzsche and various other shady beatnik culture icons.

      Oh and your little zen meditation bullshit aren't instructions for breathing, but I guess you missed that part in your rush to prove how "enlightened" you are to the world. Don't worry, we still think you're special, Mr. Down.

    46. Re: What is this? by crutchy · · Score: 3, Funny

      emacs!? why... in my day we used to program with rocks... where do you think the name bash came from anyways? get off my lawn!

    47. Re:What is this? by Culture20 · · Score: 1

      "Script kiddie" for me has always meant someone who employs scripts written by others. Writing a script is no different than writing a program that needs compiling. The only difference is in how they're run.

    48. Re:What is this? by Anonymous Coward · · Score: 0

      Mac OS X is UNIX by the only definition that still exists. Linux is trying to become like XP.

      Powershell is closer to the UNIX way than the stuff Pottering doing.

    49. Re:What is this? by Anonymous Coward · · Score: 1

      You realize that the whole unix philosophy makes GUIs easier to do, right? Want to make a better DVD burning suite? On windows, you'd need to write all teh DVD burning shit yourself too. On unix, you just use the gui to generate the CLI and call that utility to do the heavy lifting. Unix way allows for many people to each make "the perfect" gui for a task without having to know how to actually do that task. As a bonus, a user that finds they need more power can more easily drop to CLI and use the underlying utility instead of being forced to always use the GUI. Plus, updates to the utility improved the GUI's version too. If unix lacks good GUIs, it's not because of the CLI, it's because design is hard.

    50. Re:What is this? by Half-pint+HAL · · Score: 1

      No way. If you didn't spring fully-formed, fully-informed, and able to use the command-line perfectly, from the forehead of some deity, then you don't belong here. I mean, the rest of us here did. Seriously. There's never been a time when we didn't all know everything (except for you). Otherwise we'd just be admitting to a weakness, right?

      Is it a "weakness" to be a mouse? Simply because we're on a higher evolutionary level than the muggles doesn't mean we're more important them. It is our duty as superior beings, born conversant in the mystic ways of CLI, to shepherd our lesser genetic cousins. With great power comes great responsibility.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    51. Re:What is this? by Half-pint+HAL · · Score: 1

      I grew up wanting to learn, is that welcome here?

      Sadly, most functional experts are extremely poor at judging how to present their knowledge in such a way as to help others learn. It's at actually quite scary when you try to explain to others how you do something that you do without thinking, because when you can't explain it, it feels almost like, you don't know it, which makes you feel like an idiot. Suddenly your innocent question is a threat to the expert's ego and they lash out, feeling threatened.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    52. Re:What is this? by Dutch+Gun · · Score: 3, Insightful

      From my perspective as a Windows programmer/user who is trying to learn more about Linux development: Let me know if you disagree with this analysis.

      CLI is mostly useful for programmers and power-users / sys admins, and *nix was built around the concept of lots of small, useful command-line utilities that can be chained together to get useful things done. Visual interfaces, if they exist at all, are often just pretty wrapping around the core functionality available via the CLI.

      Windows (and the Mac preceding it) was built from the ground up with visual metaphors to make computing simpler for the masses. Command-lines are typically NOT the primary interface with the computer. Often, programs have built-in scripting to provide the power-user with equivalent CLI power on the *nix systems. Less importance is placed on command-line interoperability. Instead, interoperability is achieved through visual metaphors (drag and dropping files, for instance) or through OS services (OLE).

      This is a cultural clash which explains why an OS like Linux will probably never innovate in regards to visual interfaces - I think perhaps its just not all that important to those that control the core feature sets of the operating systems. Essentially, Windows users tend to see the necessity of falling back to a command-line as a crutch for a system that isn't well designed or fully featured (as you indicated), while *nix users take the opposite view, with the command line as the natural place to work, and the visual interfaces as a crutch to assist those who are not as skilled or don't need the power of the CLI.

      I just don't see that perspective changing anytime soon, and so I think UI innovation will tend to be driven by external forces in the *nix world, while the majority of the work still requires a command-line interface to access ALL the important options. BTW, Windows isn't perfect here either, of course. The equivalent in Windows starts with the phrase "Open regedit and search for the key...", but it just seems to happen far less often.

      --
      Irony: Agile development has too much intertia to be abandoned now.
    53. Re:What is this? by phantomfive · · Score: 2

      And based on the students I teach in my "intro to linux" class, a good 30% are dependent on GUIs and aren't capable of becoming half way competent in using a command line only system over a 14 week term.

      Yeah, ok, that one's on you. You suck as a teacher, there's no other way to say it. I've seen heaps of kids go through and learn to use a command line in a beginning Linux class, with rare failures (mainly caused by absences). If you are really desperate and can't figure out how to get this right, the Redhat Academy has an ok curriculum that will have all your students writing shell scripts by the end of the semester.

      Seriously, you've got to get out of the 'blame the student' mode because you're ruining a bunch of students with your lousy teaching skills (and you don't even need amazing teaching skills to teach the command line, you just need to teach it).

      --
      "First they came for the slanderers and i said nothing."
    54. Re:What is this? by Shinobi · · Score: 2

      " VBA was a bad idea that looked really good on paper. It gave a large number of people the ability to write quick and dirty tools for doing things in spite of the fact that these people had no business writing software in the first place. In the short term, these "programmers" filled a direct need, but in the long run, they have created a nightmare of sustainability that costs more to maintain / recreate than it ever saved in the first place. I have spent entirely too much time debugging and rewriting VBA tools because some unqualified hack made a tool to save themselves time on processing reports, and now I have to waste huge amounts of time fixing it to be robust, when they should have just hired a programmer to do it right in the first place."

      The funny thing is, you could replace EVERYTHING in that with Python, and it's equally valid. I see too many supposedly competent devs with a degree that gives them a "solid theoretical background" write absolutely crap quick and dirty software, with Python being the language of choice, and they throw tantrums when they aren't allowed to bog down shared resources with that

    55. Re: What is this? by Anonymous Coward · · Score: 0

      Um, but in this case, a guy just discovered his computer can do things, and is asking what else can I do with my computer.

      It's like a carpenter noticing they have a drill, when all they ever used was the hammer. Then going around asking if people know any other carpentry tools are useful.

      He may as well have came here exclaiming he discovered USB ports can be used for keyboards, and asking if anyone else has used usb for *anything*.

      Some questions are worthy of ridicule.

    56. Re:What is this? by doronbc · · Score: 1

      i wish i could spend mod points downvoting a story, that would fix it, its unfortunate what we've let the internet become, not just /.

    57. Re: What is this? by fisted · · Score: 1

      That really only applies to Linux, not to unix.

    58. Re: What is this? by Anonymous Coward · · Score: 0

      This is why there is a generation of crappy software in my field.

      The kids don't *use* pipelines, so they program with no regard for stdin/out. They don't use CLI, so they don't make good interfaces to their scripts.

      They should have learned how to work with a computer, then learned to program.

    59. Re:What is this? by fisted · · Score: 1

      Mac OS X is UNIX by the only definition that still exists.

      And yet that definition is de-facto meaningless these days, and OSX feels directly opposed to unix philosophy in a lot of ways.
      By a much more realistical definition of what unix is (namely, source code ancestry instead of trademark rights), the BSDs are the only real descendants of unix which still exist (as in, are in widespread use).

      Linux is trying to become like XP.

      Yeah, kind of.

    60. Re:What is this? by fisted · · Score: 1

      This seem to have been accidentally modded down.

    61. Re:What is this? by fisted · · Score: 1

      I am stating that having both can have value in some cases.

      IOW, you're conveying exactly 0 information here and might as well have said nothing at all.

    62. Re:What is this? by davester666 · · Score: 1

      I still do all my work entirely from within the Logo interpreter FTW!

      --
      Sleep your way to a whiter smile...date a dentist!
    63. Re:What is this? by Mars729 · · Score: 1

      This isn't worthy of being a story, we all grew up using command lines.

      Perhaps the question I should of asked was: if you were to design a GUI that is designed to be a design your own user interface what basic tools would you provide? I am surprised that made it to the front page, especially after I felt that I got most of what I wanted from the first replier.

    64. Re:What is this? by serviscope_minor · · Score: 4, Insightful

      hate on me ALL you want but anybody who is honest will admit its true,

      the hating on you will be for using a blatant "no true scotsman" fallacy, not for disliking the gui. You're a massive wanker for claiming I'm a liar because I disagree with you.

      you can completely remove CLI access from Windows and OSX and ya know what? The user would be fine,most wouldn't even notice that it was gone.

      Not if the user in question was me. In fact I know quite a lot of people who install the cygwin commandline stuff for Windows because the builtin commandline is not very good. And then there's the MinGW effort. Apparently enough people miss the commandline that there are not one but two competing efforts to bring a good commandline to windows.

      Fiven that they're Free that means there are enough people wanting that that there are enough developers from withing that subset to make two.

      That's a lot of people and you're dishonest if you don't agree, naturally.

      Try removing access to the CLI for just one year in the Linux of your choice, I DARE you.

      Why the fuck would I want to do that?

      The first time you run into a problem the ONLY CHOICE you will have to fix it is "Open up Bash and Type"...that's it, that is all.

      Well, no. That's true in some cases, but then registry hacks are true in some cases in Windows and commandline-fu is the only solution in some cases in OSX. Not sure what your point is.

      Hell just ask for a non Bash solution and watch the howls of impotent rage!

      So basically, you ask people to donate their time to you for free and they do. They give you an answer in a clear, succint way which doesn't involve the rather tricky comminucation of visual information in a forum and you have the entitledness to complain that they're not helping you "the right way".

      Wow, you sound like an asshole.

      If there is anything that Android and ARM should have taught it is that the future is NOT some 40+ year old throwback to the age of disco UIs, its intuitive, easy to discover,and easy to learn is THE way of the future!

      Except that it's not unless you have very limted horizons. And ARM was in fact developed to run an OS with an integrated commandline.

      So, mr. intiutive, how do I script repetitive actions in my workflow on Android?

      Linux....except that too many have taken CLI as their religion, their way to "test the faith" and see if the user is "worthy" to be part of the little club.

      You're the one who sounds like a religious nutball. I happen to like the commandline. I really don't care if you do. You seem to care that I like it. that's got religious quackery written all over it.

      Oh and almost forgot, of course you're dishonest if you don't agree with me.

      --
      SJW n. One who posts facts.
    65. Re:What is this? by Anonymous Coward · · Score: 0

      No, you can't remove the CLI from OS X or Windows.

      I know for a fact there is a lot of Windows functionality implemented in batch files, NT shell scripts, and Power Shell scripts. I'm sure OS X is the same but Apple already tried removing the CLI and it obviously didn't work.

      And no, you can not always point and click your way to victory.

    66. Re:What is this? by Crosshair84 · · Score: 1

      Want to make a better DVD burning suite? On windows, you'd need to write all teh DVD burning shit yourself too. On unix, you just use the gui to generate the CLI and call that utility to do the heavy lifting.

      PLEASE tell me you're joking. Such Micky Mouse amateur hour coding might cut it for the individual tinkerer, but it's certainly not gonna cut it for commercial grade software that you seem to be envisioning. CLI is just another GUI that humans use to interact with computers, so you're going to be using a GUI to interact with another GUI that then actually does the work........why is this seen as a good idea? This reminds me of the episode of Mr. Bean where he rigs his car so he can drive it from the chair strapped to the roof of his car.

      Unix way allows for many people to each make "the perfect" gui for a task without having to know how to actually do that task.

      No, it's a way that people can kludge together code into something kinda-sorta functional to make up for the fact that commercial software developers won't touch linux with a 10 foot pole.

      As a bonus, a user that finds they need more power can more easily drop to CLI and use the underlying utility instead of being forced to always use the GUI.

      Which is approximately 0% of the general computer-using population. (+/- 1% margin of error)

      If unix lacks good GUIs, it's not because of the CLI, it's because design is hard.

      No, it's because there is no money to be made in making GUIs for Linux/unix. More-or-less all the major Linux development is funded by server companies who don't care about GUIs. The only reason many of them put up with Linux in the first place is because Microsoft continues to be pants-on-head retarded when it comes to server licencing.

    67. Re:What is this? by Anonymous Coward · · Score: 0

      But the CLI works so many millions of times better than any GUI that ever existed. Its like saying "I don't need to write, I can make pictures to convey my thoughts". But the tricky bit is this: 20 people looking at your pictures will interpret your picture in 20 different ways. The written word is much more clear, its direct and to the point. And with the limited number of icons in a GUI (sure you might have 50 or 100), but a CLI can have hundreds of times then number of options than that, and they can be (most often are) strung together to do more powerful things; exactly like writing a sentence. Now you can read my retort with words, and understand, and I'm willing to bet there is more information conveyed with words rather than me just sending you something like this: :(
      Oh, and a graphical or command line interface is not an operating system.

    68. Re:What is this? by fisted · · Score: 1

      Yes, that is pretty much spot on.

      One advice though - try not to learn about "linux" development, there are too many linux-centric idiots already. Stick to POSIX. Thanks

    69. Re:What is this? by serviscope_minor · · Score: 1

      PLEASE tell me you're joking. Such Micky Mouse amateur hour coding might cut it for the individual tinkerer, but it's certainly not gonna cut it for commercial grade software that you seem to be envisioning.

      Something tells me you've never actually used commercial software. Seriously, 99% of it is utter, numitigated crap. And oh god please give me growisofs over the abmination of Nero Burning DVD any time.

      I think you have in mind one or two popular commercial programs and have forgotten or chosen to ignore the rest.

      And if you've ever used something really expensive like Pro-E and like to claim osmething about quality, I have only one thing to say to you:

      beep.

      (you'd understand that if you have actually used it).

      --
      SJW n. One who posts facts.
    70. Re:What is this? by fisted · · Score: 1

      protip: there's also the tag available

    71. Re:What is this? by Darinbob · · Score: 1

      Yes, saying command line shells are less useful is bizarre. How does one enter a command without such a shell? Command line shells are the glue that tie all the commands together. The better the shell the more you can do with the other tools.

      Is this yet another "lol I'm under thirty and just discovered something!" article?

    72. Re: What is this? by Darinbob · · Score: 1

      Worse, they could reinvent CTSS, poorly.

    73. Re:What is this? by Darinbob · · Score: 1

      VBA has the additional sin of teaching pointy haired bosses that programming is simple and easy, and that they should hire cheaper and less experienced monkeys to do the coding.

    74. Re:What is this? by Darinbob · · Score: 1

      Command lines are in more places than Linux. OSX is basically Unix under the hood with full power of sh shell. Windows has its dumb cmd shell and the better powershell, and allows Cygwin environment, plus plenty of other alternative shells. I suspect there are command line shells on phones and tablets too. It's hard to do serious work without them.

    75. Re:What is this? by Darinbob · · Score: 1

      Why is that? When I was in school we had one day to learn the command line because no one stopped to do any hand holding along the way. You got a programming assignment and one overworked TA and had to pick it up as you went.

      But even back then we had a lot of students learning computers and programming and engineering because that's where the jobs seemed to be in the future, whether or not they had any aptitude. The trick was that those students found some friends to help them out, relied on cheat sheets of commands, etc.

      We also didn't have facebook or twitter to dumb us down.

    76. Re:What is this? by Darinbob · · Score: 1

      I think "find" is a great command to learn on Unix systems, it really makes the shell powerful. By itself it's not much but comes alive when combined with other commands. That's the beauty of good command line shells; they don't do much on their own but are meant to be flexible and composite existing commands in new ways.

      Ie, knowing how to use "sox" is uninspiring, it does just a few things so you could if you want wrap it all in a GUI and not lose anything. But put it on the command line and you're able to use sox with other tools; such as using find to locate the files to pass as arguments to sox.

      Of course "grep" is a must to know as well.

      "Perl" or "awk" as well, as quick and dirty scripting languages.

    77. Re:What is this? by Anonymous Coward · · Score: 0

      Wow, you sound like an asshole.

      Is this your first time here? GP is an asshole who searches for articles about Linux, posts a lot of guff in the comments (Linux sucks because $reason_vaguely_related_to_article, you are inherently wrong if you disagree, etc) and then ignores any arguments against him. And a free PROTIP: don't bother with people who make it a point to say they don't respond to ACs; they are not looking for conversation or debate, they just want to spout their opinion and disregard anything but echoes.

    78. Re:What is this? by Anonymous Coward · · Score: 0

      While I like to think myself a BASH power user, I am guessing that I actually know only about 10-20% of those commands.

      You actually know ~500-1000 commands??!!!! Nay... not a power user... you, Sir, have achieved god-like status. Even the saaviest of the saavy sys admins only know and use a couple dozen commands.

    79. Re:What is this? by sjames · · Score: 1

      I interpreted the submission as meaning specialized command shells sandboxed within the app. Those ARE less useful because they often don't allow for piping to other apps and rarely play nice with a shell script.

    80. Re:What is this? by hairyfeet · · Score: 1

      THANK YOU! Jesus Tap Dancing Christ I have never seen so much TRUTH condensed down and served up so straightforward, thanks.

      The really sad part? The poster you are responding to is a prime example of what is wrong with Linux, and doesn't even know it! You look at your average distro on distrowatch and sadly waaay too many of the "programs" that come with it are exactly as he described, a half assed thrown together win9X level "GUI" that is doing nothing but piping input to a CLI. And God help you if you ever come up with a task that isn't the most mundane obvious task you can possibly think of because guess what? The "GUI" only has a handful of buttons for the most obvious use case, anything else? Well you better break out the Man pages and learn some arcane gibberish pal, because its CLI for you!

      So many here hate my guts because I point out bullshit where I see it and more importantly I AM the 99%, that is my customers that I work for every single day, your Joe and Sally average. And I hate to break the news to them but Joe and Sally don't give a shit about "The power of CLI" or how many think its the fricking force, nor will they put up with fugly as hell Win9x level GUIs thrown together that just call on CLI and poorly at that, no they want a modern OS that has functional, easy to use, and well designed GUIs and sadly Linux is a good decade behind in that regard.

      Mark my words, with Google making OEMs sign non compete clauses, moving more and more of the important bits of Android into their proprietary appstore, and refusing to allow anything GPL V3 anywhere near Android there WILL come a day when they lock it down. And when they do? When there is nothing but game consoles, locked down and corporate controlled? I hope the Linux community takes a good hard look in the mirror and realizes its THEIR fault! They COULD have pushed for a new GUI centric model, they COULD have gotten ahead of the curve, they COULD have listened to retailers like me that are begging for a real choice instead of corp A,B,or C,but instead they refused to let go of a 40+ year old GUI and instead of treating CLI for what it is, a niche that should only be used in certain limited use cases, they treated it as the fricking force and a right of passage.

      Well the people have spoken and the future won't be Bash commands on a 5 inch touchscreen, it'll be intuitive easy to use GUIs...that sadly will al be locked down, will datamine the shit out of the user, and lock them into a proprietary appstore. Its a damned shame, so much potential just wasted, a damned shame.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    81. Re:What is this? by sjames · · Score: 2

      My mom uses Linux and she has no idea how to use the CLI at all. Literally none. It works fine.

    82. Re: What is this? by sjames · · Score: 1

      Don't worry, I'm sure systemd will somehow end up having emacs as a dependency in the next release or two. By 2015 it'll need it in the initramfs.

    83. Re:What is this? by Anonymous Coward · · Score: 0

      Well, you are a sad little f***, who probably has books at home that you never read... just because...

      Liking or using ONLY your beautiful graphical environment is like f*** mommy-daddy the entire life without trying anything else, just because....

      Comparing linux, windows, macos and whatever other bullshit, just shows that you are completely without any understanding of what a OS really is, and how to squeeze every bit of gratifying usability for each one of them... for those who know what i'm talking about, THEY TYPE, AND A WHOLE LOT OF TYPING.

      And your whole argumentation is just because you are a LAZY ass, and completely inexcusably offensive and rude on your own ignorant view.

      For rudeness, we all know how to, and I don't even need as much typing to achieve the same stupidity you used in so much useless typing there.

    84. Re:What is this? by Anonymous Coward · · Score: 0

      Less than 1% (i made that up) of computer users need command line tools/scriptability in their OS. Would seem to make the most sense to develop software for the other 99%, doesn't it? I think that's his point.

    85. Re:What is this? by Anonymous Coward · · Score: 0

      Wow, so taking a web cam pic and changing an image is "almost everything". Who woulda thunk it!

    86. Re:What is this? by Gr8Apes · · Score: 1

      ... they COULD have listened to retailers like me that are begging for a real choice... but instead they refused to let go of a 40+ year old GUI and instead of treating CLI for what it is, a niche that should only be used in certain limited use cases, they treated it as the fricking force and a right of passage.

      Well, odds are they stopped listening after the "40+ year old GUI" comment, since the "fugly as hell Win9x level GUIs" are at most 25 years old, and that's being generous and including all of them. 20 would probably be the better age. But that aside, a GUI based system should always build on top of CLI based calls. There should not be anything doable via GUI that's not doable via CLI. Why? Because you will not always have a GUI to work with, or circumstances may make a GUI not workable. Also, a CLI based system allows for scripting for checks and configuration, among other things, and a whole hoard of automated processes. Also, in a worst case scenario, it provides a known and testable avenue for 3rd party software to use. This is especially handy when going across multiple versions of OSes or across OSes that share a common tool base.

      IOW, no, this isn't for Joe and Sally consumer, who would never even see this level. But if you think this level of access is going away, you are wholly and completely off base as businesses are looking for ways to control and validate lock-downs of devices, and a GUI will not be the way it's done.

      --
      The cesspool just got a check and balance.
    87. Re:What is this? by Anonymous Coward · · Score: 0

      Now why the fuck would I waste my time teaching morons how to use command line tools? Go learn it yourself you lazy, entitled fuck.

      The problem with the net is that I can't reach over and slap your bitch ass.

    88. Re:What is this? by grunthos · · Score: 1

      Windows .... was built from the ground up with visual metaphors to make computing simpler for the masses.

      I am the great and powerful Gates!!! Pay no attention to that DOS behind the curtain!!!

      --

      My son's 5th grade teacher actually assigned them "write a limerick about a planet". I'm not kidding.
    89. Re:What is this? by Anonymous Coward · · Score: 0

      create and burn a dvd video.

      mkdir dvddir
      dvdauthor --title -f foo1.mpg -o dvddir # do the same for the other tracks foo2 foo3... you have prepared the mpg using e.g. ffmpeg with dvd target
      dvdauthor -T -o dvddir
      mkisofs -dvd-video -o dvd.iso dvddir
      growisofs -dvd-compat -Z /dev/dvd=dvd.iso

    90. Re:What is this? by Crosshair84 · · Score: 1

      Well, odds are they stopped listening after the "40+ year old GUI" comment, since the "fugly as hell Win9x level GUIs" are at most 25 years old, and that's being generous and including all of them. 20 would probably be the better age.

      Way to miss the forest for the trees.

      There should not be anything doable via GUI that's not doable via CLI. Why? Because you will not always have a GUI to work with, or circumstances may make a GUI not workable.

      WTF man. Seriously, W. T. F. What sort of shantytown operating system and software are you running in two thousand and frigin fourteen where you WILL NOT have at least a VGA resolution GUI available? Since Windows XP, over twelve years ago, if you couldn't get at least a VGA resolution GUI then you're system was seriously broken and the only thing you were concerned about was fixing the operating system or recovering your data. People are NOT gonna be burning CD's or DVD's, connecting to a wireless network, or ANYTHING from the CLI and properly designed commercial software for advanced users has 99.9% of every conceivable option in a drop-down menu or check box. Properly designed software for novice users only shows them the options they need. (Some software, like Nero, have separate "Basic" and "Advanced" modes for different skill levels.

      If you HAVE to go an edit an .INI file for some function it's because they decided not to put that function in the GUI, not because they couldn't have. For consumer grade software, requiring editing .INI files for basic functions is considered to be shoddy design. At work we have a piece of software that requires editing an INI file to display the software on a second monitor because they didn't include that option in the GUI. That is considered by the company, and us and our customers, as a BUG and a high priority one at that. Right away you gave yourself away as a Linux user because Linux is the only operating system people try to use on the desktop that I am aware of with such a flimsy and obsolete graphics stack where actually being without a GUI of any kind is actually a concern.

      Also, a CLI based system allows for scripting for checks and configuration, among other things, and a whole hoard of automated processes.

      How many times do you people need to be told that CONSUMERS, which is what this particular sub-thread is discussing, DON"T GIVE A FLYING UNICORN ABOUT SCRIPTING. Consumers view CLI like they view a colonoscopy, they will do just about anything imaginable to NOT have to deal with it. When you go around talking to consumers about how great CLI is, they will think of you like they would someone who is going around saying getting a camera shoved up your butt is fun.

      Also, in a worst case scenario, it provides a known and testable avenue for 3rd party software to use. This is especially handy when going across multiple versions of OSes or across OSes that share a common tool base.

      Again, WTF dude. This is not a problem in any operating system other than Linux because OS's other than Linux don't break compatibility every 6 months. Relying on CLI calls for commercial grade software is a good way for a programmer to get fired.

      IOW, no, this isn't for Joe and Sally consumer, who would never even see this level. But if you think this level of access is going away, you are wholly and completely off base as businesses are looking for ways to control and validate lock-downs of devices, and a GUI will not be the way it's done.

      Yes it is. That is EXACTLY how it is done. Have you never at least seen an Active Directory Domain Controller? A few clicks and you see who has what permissions and with a couple more clicks can add or revoke access to whatever directory or service you want.

      At work we have embedded phone line controllers that are as locked down as can be, but guess what? At the office th

    91. Re:What is this? by goarilla · · Score: 1

      It's also hard to gauge the opponent's level, especially since expertise isn't a stepped ladder but more of a gradient.
      We don't know how high up we are and we don't know how low the others are.

    92. Re:What is this? by riondluz · · Score: 1

      and long time visitors of commandlinefu.com
      as well

      --
      resist propaganda
    93. Re:What is this? by hairyfeet · · Score: 1

      If in 2014 there is a real chance that you won't have a GUI that is functional? Then frankly your Mickey Mouse OS really isn't ready for the public. Seriously dude its TWENTY FOURTEEN, there is ZERO excuse for not having a functional GUI on the desktop, none. Hell Windows has had automatic GPU driver recovery since Vista RTM and that was seven years ago, if you honestly can't even guarantee a VGA level display? Then you really shouldn't be considered anything more than a hobbyist toy like Raspberry Pi, because that is just pathetic.

      And I'm not gonna waste my breath arguing over what date Win9X came out because honestly? We shouldn't even have to have this discussion because the GUIs should have evolved by now, only Linux didn't. How long ago did WinXP come out again? 2001? Yet it STILL looks better and has more features, like an easy GUI to rollback drivers and to restore the system if something goes wrong, than 2014 Linux? Seriously WTF people! To steal a line from Tron I stand for THE USERS and Joe and Sally Average, you know, the ones driving billions in sales, whom will make or break your OS? Yeah they don't give a rat's ass about CLI and again, its 2014 so they SHOULD NOT NEED CLI to have a functional OS. There is NO excuse, nobody cares about how "powerful" your disco era GUI is, nobody is gonna be dealing with cheat sheets and typing Bash commands into a 5 inch touchscreen or their brand new laptop, its just not gonna happen.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    94. Re:What is this? by Gr8Apes · · Score: 1

      I'm not talking about desktops specifically, although they're included, as companies want those locked down tight.

      As for Windows vs Linux, I'd still say Win7 lives in Win3.1 style, the icons and everything are prettier, and there's some glitz and transitions added. Overall, it's not much different. OS X isn't any different there either. They all are derived from PARC's initial GUI, which Apple massively improved on, and Microsoft and others all copied. As for GUI control for any of those things, sure, it'd be nice I suppose. OSX, one of the least perceived CLI items around can still be fully configured via CLI. Windows cannot last time I checked (2008R2 server). Which OS is more powerful when you're running 100+ systems? Or 1000+?

      As for consumer phones and tablets I'll agree Joe and Sally shouldn't ever need to touch them. It'd be nice if they had the option though. You will obviously disagree.

      --
      The cesspool just got a check and balance.
    95. Re:What is this? by Gr8Apes · · Score: 1

      WTF man. Seriously, W. T. F. What sort of shantytown operating system and software are you running in two thousand and frigin fourteen where you WILL NOT have at least a VGA resolution GUI available? Since Windows XP, over twelve years ago, if you couldn't get at least a VGA resolution GUI then you're system was seriously broken and the only thing you were concerned about was fixing the operating system or recovering your data.

      The headless system that's running 5K miles away that has an effective latency in the seconds for typed characters.

      Yes it is. That is EXACTLY how it is done. Have you never at least seen an Active Directory Domain Controller? A few clicks and you see who has what permissions and with a couple more clicks can add or revoke access to whatever directory or service you want.

      Thanks for the laugh. Now, you go off and check the other 2,499,999 people. Let me know when you're done. I'll have a list of outliers with a few queries. Or change the setup within seconds. AD is still the single biggest POS to ever masquerade as a directory provider. I'm not even sure there's a worse one out there.

      To be brutally honest, you're talking as if it was the year 1994 or something.

      I never said a GUI wasn't nicer in some cases, that's your strawman. What I did claim was that there should be no functionality provided by a GUI that was also not provided via CLI.

      --
      The cesspool just got a check and balance.
  3. wait until you try one of the *nixes by Anonymous Coward · · Score: 1

    There is even more to uncover there!

    How is this news for nerds? Maybe it's for nerds, but it's far from being news. It's more like common knowledge around Slashdot.

  4. Mod parent up by Anonymous Coward · · Score: 0

    Mod parent up

    1. Re:Mod parent up by Anonymous Coward · · Score: 5, Funny

      Mod parent up

      I can't because /. doesn't have a command line interface for moderation.

    2. Re:Mod parent up by Anonymous Coward · · Score: 0

      GP wasn't telling you to mod that post up; he was using a cli command to do so himself. And it worked - Score:5, Insightful

    3. Re:Mod parent up by Anonymous Coward · · Score: 0

      My apologies. I missed the obvious due to the lack of a command line prompt. /. probably didn't support GP's command prompt character(s).

    4. Re:Mod parent up by crutchy · · Score: 1


      $sudo slashdot -mod-parent-up -v moo
      There really are no Trolls in this thread.
      $

    5. Re:Mod parent up by joss · · Score: 1

      you're one of those gui browser wimps. real men use lynx.. silly Ping, she should never have told Marc to write that thing, think of all the man millenia squandered since the web went pointy-clicky-pickie.

      --
      http://rareformnewmedia.com/
    6. Re:Mod parent up by Anonymous Coward · · Score: 0

      Mod parent up

      I can't because /. doesn't have a command line interface for moderation.

      Huh? What's wrong with good old wget??

    7. Re:Mod parent up by Anonymous Coward · · Score: 0

      Yea...I wish Slashdot were an ANSI BBS too.

      Then instead of some of the more inane comments, we could instead have gripping games of Legend of the Red Dragon, or Usurper.

    8. Re:Mod parent up by eneville · · Score: 1

      Yea...I wish Slashdot were an ANSI BBS too.

      Then instead of some of the more inane comments, we could instead have gripping games of Legend of the Red Dragon, or Usurper.

      Oh those were the days. LORD is still playable at places like http://www.3dham.com/telnet/index.html

  5. My head just exploded. by philip.paradis · · Score: 4, Insightful

    Quoting the summary:

    Less useful but still useful are command shells. These provide file management mostly. I believe some of them may allow for sending and retrieving email messages.

    Yes, my head just exploded. Please pardon the mess, aggressive renovations are in progress. I'm absolutely awestruck that this made it to the front page of /., and suddenly feel extremely old at 32.

    In short, if you are experiencing a lack of flexibility with GUIs, which is a completely normal response in my book, please proceed to install your favorite Linux/BSD/Whatever-nixish distribution and learn to use the following:

    • Shells, at minimum a Bourne-compatible shell
    • Bash, Perl, and Python
    • Man pages

    I really, truly, honestly, brain-explodingly do not know what else to say here. Holy crap.

    --
    Write failed: Broken pipe
    1. Re:My head just exploded. by philip.paradis · · Score: 1

      Replying to my own post here for clarification: the second entry in the unordered list (which /. decided to render in a less than graceful manner) should have had the term "scripting" appended to it. One-liners are great; knowing how to write useful self-contained programs yourself in various interpreters is far better.

      This aside, I'm seriously beginning to suspect a bored troll managed to get the best of Soulskill on this one.

      --
      Write failed: Broken pipe
    2. Re:My head just exploded. by mvar · · Score: 4, Insightful

      First this Tips for your new laptop and then this.
      I have a feeling that there's more shitty noob advice to come on this site from now on..Holy crap indeed

    3. Re:My head just exploded. by Anonymous Coward · · Score: 0

      There might be command-line tools for Windows that you're ignorant of, even if you refuse to help with Lunix except for "RTFM and get off my lawn."

    4. Re:My head just exploded. by anagama · · Score: 1, Informative

      Less useful but still useful are command shells. These provide file management mostly. I believe some of them may allow for sending and retrieving email messages

      What I'm trying to understand, is how the submitter intends to use the CLI for a program without a shell of some kind. Unless he's talking about programs like Midnight Commander or Norton Commander (for people who really are getting old) by the term "command shells".

      All that said, an interesting program is motion -- it lets you use a USB webcam as a motion detector, is scriptable, takes snapshots or movies.

      http://www.lavrsen.dk/foswiki/bin/view/Motion/DownloadFiles

      --
      What changed under Obama? Nothing Good
    5. Re:My head just exploded. by philip.paradis · · Score: 0

      Man, I'm just as confused as you. I sincerely believe this was a troll submission that got through. My faith in humanity almost depends upon this being the case.

      programs like Midnight Commander or Norton Commander

      Yep on both. Used to run a BBS when I was a kid, when 9600 baud was smoking fast. Thanks dude, now I really do feel old, though not entirely in a bad way I guess. :)

      --
      Write failed: Broken pipe
    6. Re:My head just exploded. by petes_PoV · · Score: 1

      I really, truly, honestly, brain-explodingly do not know what else to say here. Holy crap

      I think the polite thing to say would be "Welcome to the world of computing. How did you like your first day?"

      --
      politicians are like babies' nappies: they should both be changed regularly and for the same reasons
    7. Re:My head just exploded. by Anonymous Coward · · Score: 0

      and regex! learn regex!

    8. Re:My head just exploded. by philip.paradis · · Score: 1

      You're probably just a troll, but what the hell, it's new year's even and I'm headed to bed in a couple of minutes anyhow. I'll waste a few calories pointing out that I've probably spent more of my life teaching people how to use everything from DOS, to every incarnation of Windows since 3.1, to most common Linux and BSD distributions (with emphasis on Debian, Mandrake back when that was a thing, and RHEL) than you've been alive. Have another drink, junior, and hope your dad doesn't notice the watered down vodka tomorrow night.

      --
      Write failed: Broken pipe
    9. Re:My head just exploded. by Anonymous Coward · · Score: 0

      First, there is no way that you can possibly know that. Second, your past experiences are irrelevant. Third, you haven't confirmed any knowledge of modern command-line tools in Windows, you just blew a bunch of smoke and hoped nobody noticed.

      Aside from posturing, I'm not sure what you were trying to accomplish here since you haven't actually contributed anything of value. What do you want, a cookie?

    10. Re:My head just exploded. by Anonymous Coward · · Score: 2, Insightful

      Shit, you should've been there when we thought 600bps was fast. My first modem was a 300bps acoustic coupler.

    11. Re:My head just exploded. by philip.paradis · · Score: 1

      Past experiences are far from irrelevant here. When you grow up, you'll understand that. As for the rest, are you shitting me? I work with PowerShell every day dealing with a production fleet of systems running a mix of Server 2008/2012, along with a slew of RHEL based stuff. Go back to bed, kid.

      --
      Write failed: Broken pipe
    12. Re:My head just exploded. by philip.paradis · · Score: 1

      Mod parent up. The few times I dialed up on an acoustic coupler were at a buddy's house as a kid on his dad's machine. In my defense, I'll note that my house still had rotary phones on the walls. :)

      --
      Write failed: Broken pipe
    13. Re:My head just exploded. by Anonymous Coward · · Score: 1

      When I see folks struggling with the shell, I really wish they would bring back Stan Kelly-Bootle's book "Understanding Unix" back into print, or even better, update it for a new version.

      While most books just take the common commands (cut, grep etc.), give a brief description and move on, Kelly-Bootle's book actually showed how to use them together in scripts that opened your mind to the possibilities (a simple example: given a text file, finding out the most frequently used words and their counts).

      I haven't seen a better book since, and I recently re-bought it.

    14. Re:My head just exploded. by Anonymous Coward · · Score: 0

      I think he wants to be a mean old fart and get attention for it from other mean old fart wannabes.

    15. Re:My head just exploded. by Anonymous Coward · · Score: 0

      Sorry junior but you already stated that you are only 32 years old, so even if your experiences weren't utterly worthless in this context, you still don't have much of it.

      Also, what happened to going to bed in a couple of minutes? Right, you didn't actually mean what you wrote, you just said it in a futile attempt to dismiss responses because you're ill prepared to handle them.

    16. Re:My head just exploded. by Anonymous Coward · · Score: 0

      Damn, the image of back room trolls like you chuckling over all the uber shit you know, which means FUCK ALL to the people who actually run the company, gives me a chill.

      I am SO glad I left tech grunt work behind 15 years ago, and now add multiples of value compared to any tech person.

      Reasonable working hours, and I'm building an addition onto my house... for an indoor pool.

    17. Re:My head just exploded. by Anonymous Coward · · Score: 0

      Mod parent up for being old? Hell, my first modem was 150 baud. What does that get me from you, a hand job?

    18. Re:My head just exploded. by Anonymous Coward · · Score: 0

      " Have another drink, junior, and hope your dad doesn't notice the watered down vodka tomorrow night."

            Actually I thanked my kid for watering down my vodka, cured my hangover problem.

    19. Re: My head just exploded. by Anonymous Coward · · Score: 0

      My first modem was 75 baud. I expect at least a blow job.

    20. Re:My head just exploded. by Desler · · Score: 1

      Bash, Perl and Python exist for pretty much all OSes. Why not simply just install the OS port over installing a whole new OS?

    21. Re:My head just exploded. by Anonymous Coward · · Score: 0

      and now add multiples of value compared to any tech person.

      Whatever helps you sleep better

    22. Re:My head just exploded. by Half-pint+HAL · · Score: 1

      if you refuse to help with Lunix except for "RTFM and get off my lawn."

      This is not the place to discuss alternative operating systems for the Commodore 64.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    23. Re: My head just exploded. by Half-pint+HAL · · Score: 1

      My first modem used two baked bean cans and a taut string. I await my invitation to the Playboy Mansion with great anticipation.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    24. Re:My head just exploded. by phantomfive · · Score: 1

      Shells, at minimum a Bourne-compatible shell

      Is there a reason to learn any other kind of shell? Serious question.

      --
      "First they came for the slanderers and i said nothing."
    25. Re:My head just exploded. by Common+Joe · · Score: 1

      You're right as I've been very sad about seeing Slashdot so watered down over the past several years. I'd also like to see a place where experts can help answer questions for noobs that is similar to the Slashdot forum. Asking a specific question and getting a specific answer is nice (as other websites address), but it would also be nice to toss something like what this guy has out there and watch the experts guide him or her in a better direction instead of stomping all over their face. I think the Internet is missing a good place like that.

      I've been around the block and I'm half way decent at what I do, but I'll think twice before submitting a question to Ask Slashdot because nay-sayers come out the woodwork. I've been called an expert by a lot of people, but I know better. I've seen the real experts in action and I'm thankful every time I have an opportunity to interact with them and learn from them.

    26. Re:My head just exploded. by Anonymous Coward · · Score: 0

      The internet doesn't need a place like that. If you need answers, go look them up yourself. 99.999999% of every question asked has already been answered.

    27. Re:My head just exploded. by Darinbob · · Score: 1

      You can also use Cygwin to get those tools on Windows. Or if on a Mac they're built-in for you.

    28. Re:My head just exploded. by philip.paradis · · Score: 1

      Sorry junior but you already stated that you are only 32 years old, so even if your experiences weren't utterly worthless in this context, you still don't have much of it.

      You just keep telling yourself that. There's a funny thing about experience: at this point, I've got about 15 years of actual professional experience in this field, along with the ability to actually build things, *gasp* work with teams, and generally help others avoid certain kinds of tragic errors of the sort that can wind up being business killers. Some people try to do this stuff for five years or thirty years and never truly grasp anything. Those people tend to wind up rather frustrated; on the off chance that you're not actually a snot nosed 15 year old on his dad's computer, does this sound familiar?

      Also, what happened to going to bed in a couple of minutes? Right, you didn't actually mean what you wrote, you just said it in a futile attempt to dismiss responses because you're ill prepared to handle them.

      Christ, you're a dense one. I've got a couple of kids to deal with these days, and as one might expect from once being a kid himself, they don't always sleep through the night. Add in a wife expecting kid #3, and sleep can get a bit irregular all around. I'm still assuming you're 15 and have no idea what any of this means, though.

      --
      Write failed: Broken pipe
    29. Re:My head just exploded. by philip.paradis · · Score: 1

      Enjoy your pool. I'll enjoy knowing I have a history of getting guys like you, folks with no real skills but plenty of attitude, fired following conversations with other guys who wear suits. Your stereotypical attitude regarding technical folks is a strong indicator that you were simply a failure in such areas, and have attempted to "business it up" with a few rounds of bullshit bingo to keep your career afloat. Hint: it falls through when the wrong people smell the bullshit. Think about that for a moment, but do enjoy your pool while you have it.

      --
      Write failed: Broken pipe
    30. Re:My head just exploded. by philip.paradis · · Score: 1

      Quite true. Cygwin is great for what it is, but it's really no replacement for a *nix system if the objective is really to go all out with utilizing the full scope of tools available for many tasks. OS X gets much closer, but you'll still find yourself resorting to Homebrew or MacPorts at some point to get a reasonably complete environment.

      --
      Write failed: Broken pipe
    31. Re:My head just exploded. by philip.paradis · · Score: 1

      I always encourage people to look into other alternatives; some folks swear by C shell, although I don't have much practical use for anything for than bash, Perl, and the usual suite of BSD and GNU utilities when it comes to system automation and other tasks.

      --
      Write failed: Broken pipe
    32. Re:My head just exploded. by Common+Joe · · Score: 1

      I'm not talking about whether a question is answered or not. It's about how the question is answered. As a programmer, I often want to know more than a single specific answer. Sometimes, specific answers are useless to me. How do I know if the answer is poor answer or a great one if I am ignorant of the whole topic? The noise ratio on the Internet is very high and Google isn't as good as it used to be. Sometimes I need a variety of answers to pick from so I can grow. Example: Without an experienced hand to help guide them, a noob to multithreaded programming is going to take a lot longer to learn proper multithreading (if they ever can figure it out).

    33. Re:My head just exploded. by Anonymous Coward · · Score: 0
      Yeah and I have 15 years of hands on experience plus another 15 years of experience telling peons like you what to do.

      Christ, you're a dense one. I've got a couple of kids to deal with these days, and as one might expect from once being a kid himself, they don't always sleep through the night

      Then why didn't you just say that instead of lying? I know why, it's because all of that is bullshit you made up to try to preempt responses because you're getting your ass handed to you every single time, boy.

    34. Re:My head just exploded. by Anonymous Coward · · Score: 0

      Getting people fired? You're a rank and file loser with no authority, so that would be quite the trick. I'm the CTO at my company so I hire and fire little dipshits like you all of the time.

  6. I agree,... by Anonymous Coward · · Score: 1

    are the mods are all drunk?

    1. Re:I agree,... by philip.paradis · · Score: 1

      Dude, Netcraft confirms it, and I'm certain of it now myself. Soulskill ain't sober at the moment. I can't fault him for that, but ... just damn dude on posting this submission.

      --
      Write failed: Broken pipe
    2. Re:I agree,... by Anonymous Coward · · Score: 0

      Can't you just skip this story if you don't want to read it?

    3. Re:I agree,... by philip.paradis · · Score: 1

      You've obviously grossly missed the entire point surrounding the severe wtfness of this story being posted on this site in the first place. Holy shit man, it's the 90s now, get with the program.

      --
      Write failed: Broken pipe
    4. Re:I agree,... by Anonymous Coward · · Score: 0

      It's the 80s, yuppies are obviously in.

    5. Re:I agree,... by Anonymous Coward · · Score: 0

      are the mods are all drunk?

      It's New Year's Day. What did you expect?

  7. Visual Basic for Applications??? by will_die · · Score: 3, Interesting

    If you are doing windows and still doing Visual Basic for Applications for general scripts you are part of the problem and really behind in your skill level.
    Powershell has easily replaced most VBA script usage, there are still a few special cases where it has to be used.

    1. Re:Visual Basic for Applications??? by Dr_Barnowl · · Score: 2

      VBA is almost VB6.

      VBScript is not quite VBA. There are some VERY annoying inconsistencies, like this :

      For ii = 0 To 10
              ' Do Stuff
      Next ii ' This is legal in VBA / VB6 - but it's a syntax error in VBScript!

    2. Re:Visual Basic for Applications??? by benjymouse · · Score: 3, Insightful

      Powershell was designed to market Windows server, providing something that looks familiar to Unix/Linux admins. It's by no means a replacement for VBScript. (Which is *not* the same thing as VBA.) VBScript, being COM-centric, is uniquely suited to accomplishing all sorts of tasks on Windows. It just happens to be getting "deprecated" as part of Microsoft's overall strategy: They want to attract people to Windows server while converting "civilian" Windows into virtually a kiosk OS.

      Sorry, BS. PowerShell is a foundation technology in Windows, unlike VBScript. Since Windows 7, the troubleshooting packs are actually written in PowerShell! The troubleshooting utilities are automatically launched by the system when e.g. network problems occur.

      PowerShell is every bit as COM capable as VBScript. PS uses a "unified" type system where multiple object models (COM, .NET, WMI etc) are surfaced as common PS objects.

      VBScript is definitively legacy (and deprecated). I will actually wager a bet that there is not a single meaningful VBScript that could not be written shorter and more elegant with PowerShell.

      --
      Reading slashdot one-liner: (irm http://rss.slashdot.org/Slashdot/slashdot).rdf.item | fl title,desc*
    3. Re:Visual Basic for Applications??? by Anonymous Coward · · Score: 0

      That's a good one. A concise explanation of the facts gets a score of 1, while a rant of command-line chauvinism gets a score of 3. That's the dirty little secret here: A lot of people who have an emotional attachment to command line and simply must assert that it's *better* than other tools.

    4. Re:Visual Basic for Applications??? by Mars729 · · Score: 1

      If you are doing windows and still doing Visual Basic for Applications for general scripts you are part of the problem and really behind in your skill level. Powershell has easily replaced most VBA script usage, there are still a few special cases where it has to be used.

      I was just listing that as an example of an API. I wrote a few very simple scripts in VBA for Excel to maintain my nature lists. Bah, Excel is too limited for that use and is part of the reason I am writing my software project.

  8. Command shells "less useful"? by loufoque · · Score: 1

    Is this some sort of joke?
    A Unix-style shell is the most useful command line interface. It is itself its own scripting language.

    There are various ones. The most popular is bash, but there are also fairly different ones like fish.

  9. "Less useful but still useful are command shells"! by Viol8 · · Score: 4, Insightful

    I'm sorry, is this a joke? The Windows command line - even with powershell - might be a crippled joke, but the unix command line allows you to control *everything* going on in the OS itself and most features of whichever Desktop you're using. Plus the ability to pipe commands together creates a level of poweruser control that is far greater than the sum of its parts. Something Microsoft took 2 decades to realise and a paradigm that a lot of Windows admins still don't "get".

  10. PowerShell by jones_supa · · Score: 4, Informative

    PowerShell deserves a mention too. Some people hate it, some people love it.

    It is object oriented so the data transfer between processes is more robust. Also all the commands' manual pages come with extensive documentation and lots of great examples. UNIX man pages usually lack examples.

    1. Re: PowerShell by Anonymous Coward · · Score: 0

      This is exactly why I prefer using the OSX Terminal CLI over Windows: Apple has ensured that all its commands are not only object-oriented for robustness but also 64-bit Cocoa-compatible, which means they only get snappier-feeling with every update.

    2. Re: PowerShell by Anonymous Coward · · Score: 0

      Apple. It's snappy, crisp, and juicy! Just like an apple should be. That's some good false analogy!

      2014 won't be anything like 1984 because I can't be bothered to think of a simile!

    3. Re:PowerShell by Anonymous Coward · · Score: 1

      PowerShell deserves a mention too. Some people hate it, some people love it.

      It is object oriented so the data transfer between processes is more robust. Also all the commands' manual pages come with extensive documentation and lots of great examples. UNIX man pages usually lack examples.

      To be fair, I think Powershell deserves more than a mention (Note: Not slamming the poster/comment). From a design point-of-view, Powershell raised the bar tremendously. A shell bundled with the OS that interacts naturally with .NET and COM objects? Which has security built-in? Pipes objects, let's you define new classes...fantastic.

      To be sure there are PS language quirks that I dislike, cmdlet names can be long & not behave intuitively, it's easy to get tripped up with .NET quirks, and it's certainly heavier than cmd.exe or cygwin.

    4. Re:PowerShell by benjymouse · · Score: 5, Informative

      It is object oriented so the data transfer between processes is more robust. Also all the commands' manual pages come with extensive documentation and lots of great examples. UNIX man pages usually lack examples.

      Most bashers (no pun intended) miss several aspects of PowerShell simply because they view it as just another shell.

      One such aspect is the fact that PowerShell is designed to operate directly with an application's core logic (the object model) whether that application was designed using COM or .NET. Virtually *all* of Window's features and even 3rd party applications for Windows are designed using one of those models. So the barrier to exposing the functionality to the CLI (PowerShell) is really, really low, and even older applications that predates PowerShell or that were never designed for PowerShell (like iTunes) lend themselves to CLI manipulation. Forget about needing to craft a suite of external CLI tools - your app is inherently exposed to command line manipulation.

      Another often overlooked aspect is how PowerShell is designed to run in-process within an application. The CLI is just *one* possible host for PowerShell. Alas, you can add the PowerShell engine to your app and immediately leverage existing commands to manipulate the in-process memory objects of your application. So not only is it *easy* to expose your application to automation, you can actually take advantage of the PowerShell engine to save work for your own in-application automation. With workflow engine integration in PowerShell 3.0 (it is now at 4.0) this is a great way to orchestrate workflows activities in an easy-to-manage way.

      --
      Reading slashdot one-liner: (irm http://rss.slashdot.org/Slashdot/slashdot).rdf.item | fl title,desc*
    5. Re:PowerShell by Anonymous Coward · · Score: 0

      It is object oriented so the data transfer between processes is more robust.

      Please explain how this works. Are you equating baroque complexity with robustness? If not, show how the approach you refer to is more robust than Unix pipes.

      Also all the commands' manual pages come with extensive documentation and lots of great examples.

      Accessible from within the terminal emulator hosting the command line?

      Even if so I'll remain sceptical, since every big corporate-produced "documentation" tends to be as useless as it is voluminous, though some moreso than others. msdn never was an exception, so I have no reason to expect this can be expected to stand up to a higher standard.

      UNIX man pages usually lack examples.

      Not in my experience. linux man pages have a habit of saying "go read the info pages"* and where they've been replaced with slightly better versions (debian tries to offer this) they aren't as extensive as what I consider normal for manpages. But linux is the outlier here, even if it is most familiar unix-like contraption to plenty /. readers. So, I'd say this assertion is patently false and gives away that you are in fact not very informed about Unix at all. You're welcome to colour me biased, because I'm used to systems that hold themselves to much higher standards here.

      * Which requires a captive interface instead of the configurable-as-usual $PAGER mechanism, and often as not presents you with the same, but now harder to navigate, manpage because the custom info viewer could not find the info pages.

    6. Re:PowerShell by Anonymous Coward · · Score: 0

      What's the going rate for a proprietary software shill these days jonesy?

    7. Re:PowerShell by charlism · · Score: 1
      Powershell actually was created by taking the best of the Unix CLI and rolling in the .NET and COM object model. So it is a Windows flavored superset of the Unix CLI.

      show how the approach you refer to is more robust than Unix pipes.

      You can pass objects and collections of objects in the PowerShell pipes.

      [Are manual pages] accessible from within the terminal emulator hosting the command line?

      Yes. And "manual pages" can be included inside user created functions to behave just like the built in ones. The help information in Powershell can be quite verbose. But it is categorized and the Get-Help cmdlet has switches to show you the basics, certain sections, or the whole content.

    8. Re:PowerShell by Anonymous Coward · · Score: 0

      UNIX man pages usually lack examples.

      Well...sometimes. And yes, it's annoying when that's the case. When you're lucky, in the absence of examples in the man page, you can find them in the info page.

      I'd say we should go on a crusade to fix man pages, but if it hasn't happened in the last 40 years, I can't say I have much hope now that they're in less use than ever with the advent of everyone googling before bothering to check a man page...

    9. Re:PowerShell by Anonymous Coward · · Score: 0

      Seconded. I've done a fair amount of PowerShell for various tasks in the continuous integration system I setup at work. Something also worth looking at is PSake, a DSL in PowerShell for build automation: http://en.wikipedia.org/wiki/Psake & https://github.com/psake/psake . I have no connection to PSake, but I use it extensively and love it.

    10. Re:PowerShell by rev0lt · · Score: 1

      Please explain how this works. Are you equating baroque complexity with robustness? If not, show how the approach you refer to is more robust than Unix pipes.

      Given the sheer amount of system resources allocated to complex pipe usage (eg. file descriptors) that render them useless in most recursive usage scenarios, and the fact that they only work with "streams of bytes", I'd say there's a lot to be improved on. We're not in the 70's anymore.

      Accessible from within the terminal emulator hosting the command line?

      No UNIX I know of *has* manual pages accessible from within the terminal emulator. They all rely on an external utility for it, that can actually be run directly without a terminal (eg. on a custom app by executing an exec call) - man or info or whatever.

      Not in my experience. linux man pages have a habit of saying "go read the info pages"* and where they've been replaced with slightly better versions (debian tries to offer this) they aren't as extensive as what I consider normal for manpages.

      I'd suggest you to have a look at the man pages of any modern BSD system, to see how "proper man pages" looks like. More often than not, manpages in linux are outdated, because features tend to be deployed without updating the documentation.

      You're welcome to colour me biased, because I'm used to systems that hold themselves to much higher standards here.

      So, you're not using Linux, right?

    11. Re:PowerShell by dolmen.fr · · Score: 1

      The only *major* issue is that finding the documentation for all those COM APIs is hard. That documentation is not installed on the base system. You have to be a .NET expert to use them.

  11. Great topic by Ceriel+Nosforit · · Score: 4, Informative

    mulk - much needed modernization of wget's functionality
    qrencode - copy-paste from the desktop to a mobile device, or maintain an airgap
    iotop - like htop for IO
    history - built into bash, re-issue old commands as !number
    pkill - kill programs indiscriminately
    youtube-dl - keeps working even though google has almost killed youtube
    netstat -lnp - see which program is bound to which port
    vim - it won't make sense until you install plugins like spf-13, learn a few key combinations and set :color ir_black
    tar -zxvf - you can remember it because the keys are right next to each other
    pxz - parallel LZMA compressor
    alasamixer - volume control
    locate - find files, update the index with updatedb

    Looking forwards to see more!

    --
    All rites reversed 2010
    1. Re:Great topic by Anonymous Coward · · Score: 0

      Annoyingly you can do more in the GUI with some programs than you can do from the command line. Take Brasero v3.4.1, for example, which is what Nautilus uses for the "Copy Disc..." option... I would love to be able to use a command like the following to bypass the GUI entirely when copying a DVD to an .iso file:

      brasero --device=/dev/sr0 --copy --image-file=./SomeVideo.iso

      Instead I have to mess about with dvdcpy and mkisofs, which doesn't always capture the right content, and you have a nasty folder mess left afterwards:

      dvdcpy -s skip -o SomeVideo -m /dev/sr0; mkisofs -dvd-video -o SomeVideo.iso SomeVideo/

    2. Re:Great topic by Yunga+Palatino · · Score: 1

      I made a little cheat sheet that is mostly a copy/paste from whatisdb, and somehow grouped the commands by theme. Comments are appreciated if you think something's missing. http://pastebin.com/yGmGiDQX

    3. Re:Great topic by Anonymous Coward · · Score: 0

      dd - burn an entire ISO file to a device, or vice versa
      !foo - calls last typed command beginning with 'foo', for example, "!nauti" will likely call "nautilus" or "nautilus /home/me/Downloads &"
      shred -vu filename.txt - permanently deletes filename.txt

      pseduo-ey commands that work with my system:
      CTRL+C - stop whatever you were just typing and give me a fresh line
      up/down arrows - scroll through recently typed commands
      CTRL+L - MAGIC
      CTRL+D - close the shell window, provided there is nothing typed on the line
      CTRL+Z - pause a program running in a terminal, and use bg to run it again (reclaiming the prompt in the window) or fg to return the state before pressing CTRL+Z

    4. Re:Great topic by rdnetto · · Score: 1

      tar -axf - automatically chooses compression algorithm based on extension
      zsh - the autocomplete alone is worth it compared to bash (use oh-my-zsh to simplify setup). Right-hand prompts are pretty nice once you get used to them.
      pv - pipe streams through it for a graphical progress bar
      nice/ionice - lower the priority of background processes
      ack - faster alternative to grep with better output formatting
      lsblk/lscpu/lshw/lspci/lsusb - view attached hardware. lshw is great for a comprehensive list, and lsblk recognizes raid, encrypted volumes, etc.
      pwgen - useful for generating passwords
      apt-file/dpkg/$YOUR_PACKAGE_MANAGER - read the man pages - commands for determining which package a file belongs to (esp. if that package isn't installed) are particularly useful
      Yakuake - not a CLI tool, but being able to pull up a terminal with a single keypress is pretty handy

      --
      Most human behaviour can be explained in terms of identity.
  12. Command line! by Anonymous Coward · · Score: 0

    Everything old is new again...

    Hey lets reinvent the wheel too.

    1. Re:Command line! by blue+trane · · Score: 1

      Nah let's forget it and go into space.

  13. Is this real life? by Anonymous Coward · · Score: 1

    I have been reading Slashdot for over 10 years.. this would have to be one of the worst 'news for nerds' stories I have ever seen.

    I need to find a new watering hole.

    1. Re: Is this real life? by Anonymous Coward · · Score: 0

      +1. I think this article gave me brain cancer.

    2. Re:Is this real life? by Anonymous Coward · · Score: 0

      is this just fantasy? caught in a landslide, no escape from reality! open your eyes, look up to the sky and see!

  14. What the f**king f**k? by YuppieScum · · Score: 4, Insightful

    "GUIs are walled gardens in that features available in one piece of software is not available to other pieces of software.

    Never mind it should be "are" not "is", under what circumstances would you ever be surprised that the features provided by Excel are not available in PhotoShop... with the exception of cut/copy/paste?

    Did I miss a meeting where meretricious twaddle on this site became de rigour?

    Maybe I should resign my ID...

    --
    This sig left unintentionally blank.
    1. Re:What the f**king f**k? by philip.paradis · · Score: 4, Insightful

      Man, my original ID was in the 75K-ish range, and I'm seriously debating whether this was (1) a troll submission that got through, or (2) a tactical move to get folks like us to finally just say "fuck it" here and move along while Dice moves along to pursue the new, hip, trendy, GUI-loving, tablet-toting, no-fucking-idea-whatsoever-how-things-work-at-all crowd for ad views. I honestly don't know, but I can safely say this is the most ridiculous thing I've ever seen posted to this site.

      --
      Write failed: Broken pipe
    2. Re:What the f**king f**k? by Anonymous Coward · · Score: 0

      It's spelled de rigueur.

    3. Re:What the f**king f**k? by blue+trane · · Score: 1

      Old fogey has alzheimer's, news at 11!

    4. Re:What the f**king f**k? by Anonymous Coward · · Score: 1

      This. "Hey I just found out that if you press the button labeled 'power' on your computer, it starts to whirl and swoosh and blinks wonderful lights at you! You totally should try it!"

    5. Re: What the f**king f**k? by johnsnails · · Score: 1

      Ive looked on eBay for low id's in the past. But not sure I care with the recent caliber of published story.

    6. Re:What the f**king f**k? by fat_mike · · Score: 0

      I'm with you. Recycled days old articles. Blatant ads being posted as stories. No accountability. And editors who think they can just ignore their detractors even as they grow larger. Oh yeah, high five fellow 70K ID brother/sister.

    7. Re:What the f**king f**k? by Anonymous Coward · · Score: 0, Redundant

      I agree Philip. I'm a scripting expert (Bash, Perl, Awk, Sed, PHP, Python, VBA, etc.), and I'm just wondering whether or not this is f*ckin' satire.

      Anyways, I've discovered Techdirt (Wiki article), which is also hosted on Slash. If you feel as abandoned as I do by this onslaught of facile nonsense and steady decline of comment section intelligence (and wow, that new ./ beta is ugly), my suggestion is to move there. It's small-scale, but it exists and it doesn't have any pretentions (yet).

    8. Re:What the f**king f**k? by Fazed · · Score: 1

      It's sad because it's true.

  15. AutoHotkey by Anonymous Coward · · Score: 0

    Manipulate the Windows GUI with AutoHotkey. It's quite useful for scripting closed-source Windows software that provides a GUI but not command line options.

    1. Re:AutoHotkey by Ceriel+Nosforit · · Score: 1

      Are you going to tell these old fossils about bookmarklets too? =)

      --
      All rites reversed 2010
    2. Re:AutoHotkey by Anonymous Coward · · Score: 0

      Nah. But I recently needed to automate the task of launching some closed-source crap that provides a command window but no method of loading commands from a config file. So I wrote an AHK script to launch the crap and type stuff into its command window with simulated keystrokes. Problem solved.

  16. Re:"Less useful but still useful are command shell by Anonymous Coward · · Score: 0

    Exactly this. FFS, bash allows you to read straight from TCP sockets.

  17. Fanboi bait by EngnrFrmrlyKnownAsAC · · Score: 1

    GUIs are walled gardens in that features available in one piece of software is not available to other pieces of software.

    The best programs do have scripting interfaces but just because a program lacks a graphical interface doesn't mean it's properly scriptable.

    --
    Howdy howdy howdy
  18. (A)REXX by dltaylor · · Score: 1

    The movie Titanic was rendered, in no small part, with Amigas running AREXX to control the per-frame rendering and result submission. Many Amiga applications included an AREXX interface port (I used the one in the terminal emulator for automated dialing).

    PC-DOS 6 (The IBM release, that also included CDROM drivers, and came on CD), had an IBM port of mainframe REXX, as well.

    1. Re:(A)REXX by zoward · · Score: 1

      REXX was the "blessed" scripting language of OS/2 as well, and had lots of hooks into the OS.

      --
      "Can't you see that everyone is buying station wagons?"
    2. Re:(A)REXX by Darinbob · · Score: 1

      AREXX was awesome, as well as the original REXX. Then tcl came along and pretended to invent the whole concept of adding scripting capabilities to an application.

  19. There is only one true CLI by Anonymous Coward · · Score: 1

    and that is the VMS DCL
    Built-n context sensitive help with examples. Not need for those terrible things called 'man' pages. Nary and example in sight in them.

    1. Re:There is only one true CLI by msobkow · · Score: 2

      Funny. I had a nightmare recently about being suckered into a contract to do some VMS work.

      DCL always gave me the willies.

      --
      I do not fail; I succeed at finding out what does not work.
  20. Re:Lots of programmers for hire by Anonymous Coward · · Score: 0

    What if my time is free and I want to learn?

  21. A question of better design by Anonymous Coward · · Score: 0

    A GUI should be a shell that drives an object model. The same object model should be accessible via either a command-line program or some other interface (Perl, Python, etc). That's been a best practice since the 90s. Develop the functionality of the program as an object model, and write a GUI that drives it.

    1. Re:A question of better design by Anonymous Coward · · Score: 0

      Best practice also says that all programs should be open source so they can be modified as needed, but not all programs are open source, even in 2014. Sometimes the GUI is all you get.

  22. Broken calendar widget? by Anonymous Coward · · Score: 0

    January 1 != April 1

    1. Re:Broken calendar widget? by Anonymous Coward · · Score: 0

      Is it Smarch yet? I guess not; the weather outside isn't quite frightful enough.

  23. Situation normal by dbIII · · Score: 1

    VB was BASIC, then it was Pascal, then pretty well cut down Java. Where do you want to go today?
    You won't be able to do it the same way tomorrow.

    1. Re:Situation normal by Anonymous Coward · · Score: 0

      I think you'll find Pascal predates Visual Basic by a decade or two.

    2. Re:Situation normal by Anonymous Coward · · Score: 0

      I think he's referring to the way the Visual Basic syntax has morphed over the years from something which looked a bit like old school BASIC into something which looked a bit like Pascal.

      I don't really know, though. I've had limited exposure to that particular death of the mind which is Visual Basic, but hey, when has ignorance of a subject ever stopped anyone here on \. commenting on it..?

      Happy New Year!, and all that.,.

    3. Re:Situation normal by dbIII · · Score: 2

      Obviously, just as BASIC and java did. The point that was missed is VB had BASIC syntax, then changed to a lot of syntax from pascal, then changed to a lot from java - all without being backwards compatible but the thing was still called VB.

    4. Re:Situation normal by maz2331 · · Score: 1

      VB.NET is actually C# without case sensitivity and curly braces. The scope rules are the same and all of the functionality is there. It just looks like BASIC and not C.

    5. Re:Situation normal by dbIII · · Score: 1

      Add one more to the list of changing fashions then.

  24. Don't start bashing the curious by cerberusss · · Score: 5, Insightful

    Obviously the submitter didn't grow up with a unix background, as lots of people here have. And now I see lots of people asking what the hell submitter is thinking, "is this a joke", "not worthy of a story" et cetera.

    But think about it. Submitter came from a GUI background and now discovers the commandline. I'm thinking back when I started with Linux, feeling totally amazed about so much utilities, so much power and I kinda envy the submitter :)

    So give it a rest and just chip in.

    --
    8 of 13 people found this answer helpful. Did you?
    1. Re:Don't start bashing the curious by Anonymous Coward · · Score: 0

      Oh dear gods, there are living people who grew up using modern versions of Windows. They don't know DOS! The horror........

    2. Re:Don't start bashing the curious by Ceriel+Nosforit · · Score: 1

      So far this submission has seen a really disappointing response from the Slashdot crowd. They look like braggarts who do not actually know anything about the subject matter.

      --
      All rites reversed 2010
    3. Re:Don't start bashing the curious by Anonymous Coward · · Score: 3, Interesting

      There is lots of information out there and, very much unlike 20 years ago, the tools to find this information are numerous, easy to use and freely available. It's nice that someone stumbled upon the power of the command line, but it doesn't need to make front page news. No, we're not going to deliver the information on a silver plate any more than it already is delivered on a silver plate if you bother to look. Granted, some will write about their favorite programs, but the scorn to offset these nuggets of misplaced helpfulness is well deserved. It isn't so much directed at the newbie who doesn't know better but at the editor who allowed it through to the front page. Can you imagine someone getting onto the cover of a fashion magazine with a story about how they discovered that you can actually sew your own clothes and does anyone have any tips about that?

    4. Re:Don't start bashing the curious by Selur · · Score: 1

      might have been interessting to know which OS the poster is using, since there are a lot of different cl-tools which are available on one but not the other OS

    5. Re:Don't start bashing the curious by Anonymous Coward · · Score: 0

      No, we're not going to deliver the information on a silver plate any more than it already is delivered on a silver plate if you bother to look.

      Hey, speak for yourself! I am more than happy to deliver command line information on a silver plate to anyone that needs it. :) Both UNIX, and Windows PowerShell.

    6. Re:Don't start bashing the curious by Ceriel+Nosforit · · Score: 1

      I am more than happy to deliver command line information on a silver plate to anyone that needs it.

      Hear hear.

      Don't let greyface get you down!

      --
      All rites reversed 2010
    7. Re:Don't start bashing the curious by geoskd · · Score: 3, Informative

      So far this submission has seen a really disappointing response from the Slashdot crowd. They look like braggarts who do not actually know anything about the subject matter.

      That's because the question itself shows a fundamental lack of understanding that renders any answer that might be provided as simply incomplete at best, and actively misleading at worst. The submitter does not understand the subject matter well enough to understand why the question was flawed, and knowing where to begin explaining to the submitter what he/she needs to know is a very tricky problem.

      We can infer from the way the question is asked that the submitter probably has spent most of their life as a windows user, and has probably recently discovered power shell. It is also possible, although unlikely that they have recently started playing with Linux, but if they did, it would have to be Ubuntu, or another newbie friendly distro, and they probably installed it, and not much more. My guess is that this person is in their late teens or early twenties, and if they are attending college, it is not in a CS or related degree. The probability that this person is Male is about 87% give or take.

      All that having been said, my advice is actually rather simple. If he/she has not already installed Ubuntu, do so now. regardless of their current enrollment status, get signed up to take a beginner level programming class. Make absolute sure that this class uses a UNIX based curriculum, and not Windows, as the UNIX curriculum will almost definitely be Command Line only. The reason I make this suggestion is because beginner level programming will teach the fundamentals of command line interpreting, and will give a solid basis for understanding how programs start up, and what they have to do, and how they do it. If (as I suspect) this person is still a high school student, this will give them college credit as well, and will look good on a college application, especially for a CS related program. The one warning I will give, is that this class will be relatively boring. There is nothing sexy or exciting about beginner level programming. You will need years of experience before you will be ready to tackle the fun stuff, and 90% of programming is "boring" details anyway, but this will help align your understanding of how programs work to what they are really doing under the hood, and should give you a basis for asking more salient questions, and getting better answers, in the future.

      --
      I wish I had a good sig, but all the good ones are copyrighted
    8. Re:Don't start bashing the curious by Ceriel+Nosforit · · Score: 1

      You said in your other post that you're functionally dumber for learning that Microsoft should be dead. This isn't true. You have built character that will convince an MBA that you speak the truth. Many others have done the same and because of this we see the industry actually taking action to the effect.

      It is said that Aristotle knew everything there is to know. Still in thee 80s it was reportedly possible to do the same in the area of IT/CS, but now two decades later even knowing CLI is actually setting the bar very high. I recently met someone who was obviously from the next generation of internet users and he taught me about AutoHotkey, Bookmarklets and Google Chrome. In return I tried to each him about scripting the web with jQuery, using low-level tools like netcat, a bit of *nix, and digital signal processing. He knew audio engineering from the performance art perspective, and he had talent.

      I'll cut to the chase. We can not afford to waste talent. Let me re-phrase that; because of the stupid cultural wars that the West has sponsored we do not have the economic margins to let any talent we can find to go untapped. The baby-boomers, who caused all of this shit though their egomania, are about to retire and they are prepared to sacrifice their young if it means a comfortable rotting-away for them. This guy, white rasta hippie who obviously had been fed too much HFCS without his informed consent, comes from an independent culture bred out of places like 4chan and Reddit. They are different from the previous generation just like you are different from the generation preceding your's. What you can do is support them by giving them your precious time and understanding, and not fucking sabotage what little confidence they have left in our species. - They are much better informed than you think.

      --
      All rites reversed 2010
    9. Re:Don't start bashing the curious by Half-pint+HAL · · Score: 1

      So far this submission has seen a really disappointing response from the Slashdot crowd. They look like braggarts who do not actually know anything about the subject matter.

      Well, let's flip the question...

      Ask Slashdot: Graphical User Interfaces -- What Is Out There?

      However, there is software out there with GUI options that can make software features accessible to users. Some important ones I have uncovered are:

      Photoshop

      Audacity

      LibreOffice

      What else is out there?

      It's a question that just has too tremendously wide a scope to be a practical conversation starter. Yes, people have been far too rude about it, but this should never have been accepted as a story.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    10. Re:Don't start bashing the curious by Mars729 · · Score: 1

      I probably deserve much of the flaming. My question had a grammar error in it that I couldn't correct because it was already posted. Also my question was a bit misleading. I am building a generalized personal organizer. For myself, command line utilities can reduce my workload, no need to reinvent what is already out there. When I am done this organizer it will be customizable in many ways, including shelling out to the command line. In my documentation I would provide a list of the ways my software could be extended. I was asking the slashdot community what command line utilities could be used to extend a "user-customizable" GUI. In my limited spare time over the last two years I have written about 10000 lines of code and will in a few months I will have a photo organizer I can use and if I am lucky I will be able to get my nature observation/checklist "database" up and running as well before May. However, it will take a long time to get a finished product out. I programmed it in VB6 although in retrospect I should have tried a later version of VB. (For lists, for using multiple CPUs, etc) The work required to port it would be daunting so I have stuck with VB6 for now. My experience in computers started with the Vic 20, then MSDOS, then Windows. I have not tried linux but I have been curious about it. So far my program has a not-so-friendly multidimensional mind-mapping-like backend (like the abandoned GZZ software), a menuing system, a photo organizer and a table to database-like stuff. The menuing system includes all the functionality you would find in a taskbar, conventional menus, right-click context menus and more. The menuing system would have features that are designed to reduce the number of mouse strokes required to get something done. For example if you had a folder of pictures with ducks and shorebirds, instead of starting at the base of the taxonomy hierarchy you would spawn and bar for ducks and a bar for shorebirds. For every duck or shorebird you tag, you have at least two mouse strokes. You might think, why not use a Treeview control? With a treeview control you can spend a lot of time expanding and collapsing branches plus grrrrr scrolling up and down. I hope in the end I can avoid running afoul of all those ridiculous software patents that I don't know about out there. I know about the zigzag patent and will consult with Ted Nelson when the software is almost complete. About a year ago I emailed him of my plans and he said he would not stop my development. I hope he likes what I have done when I get it finished. Perhaps my software could eventually be used to create his Xanadu software assuming he doesn't find someone else to build it for him first.

    11. Re:Don't start bashing the curious by Darinbob · · Score: 1

      People keep saying "Unix" background. Unix is not the only operating system out there with a command line, the world is not divided into 'GUI vs Unix". Used to be that all general purpose operating systems had a command line. Even Windows has a command line (a bad one and a decent one), and was derived from DOS which was only a command line, which was derived from CP/M which was only a command line. Then there's VMS, ITS, TENEX, GCOS, CANDE, MVS, Genera, ITS, as well as countless obscure ones.

    12. Re:Don't start bashing the curious by Mars729 · · Score: 1

      It's a question that just has too tremendously wide a scope to be a practical conversation starter. Yes, people have been far too rude about it, but this should never have been accepted as a story.

      Yes, it should not have been accepted as I written it. I was looking for what in the command line world would be useful for extending _my_ software. The tricky part is explaining what my software is supposed to do and keeping my message short. In a nutshell it is software that is designed to allow a user to tailor their own user interface. Explaining how this is possible is difficult -- novel software ideas always are. If I could turn back time, I would rewrite the submission entirely. In any case, I am going to mine this discussion for its information. Despite the rats nest I created I am thankful for the response from the slashdot community.

    13. Re:Don't start bashing the curious by cerberusss · · Score: 1

      Sounds great, keep it up. Be sure to ship it as soon as possible.

      Someone once said "if in hindsight you're not ashamed of what you shipped, then you waited too long".

      --
      8 of 13 people found this answer helpful. Did you?
  25. electrum by lkcl · · Score: 1

    although it has a built-in python command prompt i.e. it's python it does have that as an actual tab, with the electrum python module pre-loaded. really handy.

  26. Indeed by Anonymous Coward · · Score: 0

    are the mods are all drunk?

    And maybe a few of us too.

  27. Re:"Less useful but still useful are command shell by Anonymous Coward · · Score: 0

    Many of teh GUI utilities in *nix are basically wrappers around the CLI. Every MP3 or DVD burning program, for instance.

  28. Unless this is a joke... by Anonymous Coward · · Score: 0

    ....this is a good example of why I rarely come to slashdot any more.

    And I've been involved with /. almost from the beginning.

     

    1. Re:Unless this is a joke... by jones_supa · · Score: 1

      You can always improve the situation by submitting articles. I do that every now and then, and that way get to govern what appears on the front page.

    2. Re:Unless this is a joke... by ledow · · Score: 1

      I've probably been here longer than quite a lot of people.

      It's exactly that kind of attitude that puts me off. Especially when, when something does seem newsworthy for here, seemingly the most contrived, error-ridden, broken-linked summary of the situation that assumes everyone knows what every acronym means and exactly what we're talking about (without explanation) is the one that makes it to the front page IF ANY AT ALL.

      Sorry, but Slashdot is a shadow of its former self, and I used to browse it happily in work (IT-based, obviously) and we'd all learn from it. Now I'd be ashamed to show the front page to someone, even with my author/story filters turned on. It's now just a "this place was cool once, look how cool I am to be hanging out in this old place that was cool once" kind of place for most people.

      There's still discussion, and still the occasional interesting article, and dammit I've paid for my account on here, so I still pop back often, but to be honest, I've given it up several times when they've done stupid shit (like the business section, video adverts for a hood with pockets, etc.) and it eventually all died down and so I came back. But each time I go, I go for longer. And each time I go, it's harder to force myself to go back.

      To be honest, this is a pretty minor infraction compared to some in the past but it all loses readership.

    3. Re:Unless this is a joke... by jones_supa · · Score: 2

      I don't know really. When I look Slashdot articles published 10 years ago, they are the same stuff. Even the same whining of Slashdot jumping the shark has always been there.

    4. Re:Unless this is a joke... by fnj · · Score: 1

      Bingo.

  29. There are three User interfaces and none are.... by 3seas · · Score: 1

    ... of any less value than the others.

    From http://abstractionphysics.net/pmwiki/index.php

    Primary computer user interfaces:
    Nature likes three (3) in primaries, as color in light (additive - red, blue, green) and paint (subtractive - blue, yellow, red) from which we can create all other colors in the rainbow. This applies to abstraction physics as well, as applied through the tool of computer, for there are three primary user interfaces. The command line, the Graphical User interface (GUI) and the side door port to application and functionality access (known by many different names and application levels such as API, IPC, DCOM, dcop, D-BUS, Plumber, computer sockets, etc., but each having its limitation and typically not so end user friendly as the concept should be.) And like the primary colors, if you take one away or limit its use, you constrain the ability of the user in putting new automatons together or modifying existing ones. Causing false limitations in user ability also applies to the abstraction actions mentioned above, constrain access and you constrain users ability to create or modify.

    Why The Matrix was inside it green until the end of the third where the sky was full color. Why there were "THREE" power lines to the robot city...

  30. Re:Hi by Anonymous Coward · · Score: 0

    The bad news is you're tarded and fuckedup. The good news is lots of tards live kickass lives these days!

  31. AppleScript by pond0123 · · Score: 1

    Others have already pointed out how bizarre the original story is, but there seems to be no mention of AppleScript. If you're on OS X, you get the Unix command line plus scriptable applications through AppleScript with raw scripts or GUI-built actions through Automator. It's all built in to a clean installation of the OS. Amiga afficionados should be familiar with the concept via ARexx.

    Many third party application support AppleScript, though as the environment seems to gain more and more inexperienced and/or lazy programmers, proper integration into the OS X framework environment seems to get worse and worse. That includes code from Apple. Given the extremely sharp decline in Apple's software quality over the last couple of years across all of their platforms, it's currently rather hard to recommend any of it. Probably needs to be filed under "a very good idea, destroyed by the incompetence of the modern software industry".

  32. Cygwin by ACorvus · · Score: 1

    Looks like the you are a windows user.
    In which case, there is only one thing you need, and that's Cygwin. It is a GNU environment on Windows.

    http://www.cygwin.com/

    --
    -- Sig Sig Sputnik
  33. Soulskill: please don't drink and post by wjcofkc · · Score: 4, Insightful

    GUIs are walled gardens in that features available in one piece of software is not available to other pieces of software.

    Setting aside the fact that this statement makes no sense, I suspect it was crafted around using the term "walled garden" in a misguided effort to establish nerd street cred. Mission failed.

    However, there is software out there with command-line options that can make software features accessible to power users and programmers.

    Out of all of the CLI based software the submitter could have chosen, the selection demonstrates that they are neither a power user or a programmer.

    Less useful but still useful are command shells.

    Holy fuck. Seriously? What I am supposed to run my CLI based software in to begin with. Never mind everything else about a shell that runs deep.

    The bullet points caught my eyes first, I knew right away it was going to be bad, but this? This article making the front page is an insult to the majority of Slashdot's user base and an affront to our intellect and skill sets. Also, it reads like it was written by a second-grader.

    --
    Brought to you by Carl's Junior.
    1. Re:Soulskill: please don't drink and post by Anonymous Coward · · Score: 0

      ..Also, it reads like it was written by a second-grader.

      To be fair, a lot of the responses to it look as if they've been written by /b/tards..
      (I'll be getting back to my whisky now...).

  34. libdav by johnsnails · · Score: 1

    isint ffmpeg superseded? Don't know if the new one is better or not...

  35. Programming analogy by StripedCow · · Score: 1

    GUIs are walled gardens in that features available in one piece of software is not available to other pieces of software.

    If only Members of Congress were programmers, companies would be modular entities instead of the monolithic monsters they are now.

    --
    If Pandora's box is destined to be opened, *I* want to be the one to open it.
  36. A command-line audio recording and production tool by Anonymous Coward · · Score: 0

    Nama's command prompt has been used to produce the prog rock compositions of Julien Claassen. It is a small overlay (<20kloc) on the well-regarded Ecasound audio engine. Nama is written in perl, so can build under any Unix brethren, and Ecasound as well. With some upcoming changes, it will also manage audio mixing and routing for live shows. It does have a optional hard-disk recorder styled GUI, and can pop up other utilities for viewing and editing waveforms. Best is to build from github.

    --The Nama Animator (say that three times fast)

  37. Documenters workbench and the AT&T toolkits by thogard · · Score: 1

    The AT&T Documenters Workbench has the best spell checker I have ever used. If you keep spelling "the" as "xqy", it learns and copes to the point where it can will offer "then" to xqyn". It knows that "rhw" might be "the" as well as "tje" is "the" as it knows keyboard layout. It was also the best spell checker for then/than lose/loose and it would adapt its dictionary based on reading level so it won't get tripped up on efficiency/efficacy

    Someone needs to find out who (if anyone) owns the copyright and make it open source friendly.

    AT&T had other tool kits too that would be very useful to the modern world but they seemed to have disappeared.

    1. Re:Documenters workbench and the AT&T toolkits by Anonymous Coward · · Score: 1

      http://www2.research.att.com/~astopen/download/tgz/dwb.1993-02-04.tgz

  38. apropos by Anonymous Coward · · Score: 0

    apropos: reverse man page lookup. You could, for example, type apropos music and it would give you a list of every command that has something to do with music.

    1. Re:apropos by Ceriel+Nosforit · · Score: 1

      I didn't know that and I have needed that command for 15 years. Thanks, you made this topic worth my time!

      --
      All rites reversed 2010
  39. Ridiculous by Anonymous Coward · · Score: 0

    What the author exposes is exposed, and i can learn what is exposed in a reasonable manner. Who gives 2fks how?

  40. Shells are "less useful"??? by Koen+Lefever · · Score: 1
    I'm probably feeding a troll who made it to the front page here... But let's assume this was an honest question.

    Less useful but still useful are command shells. These provide file management mostly. I believe some of them may allow for sending and retrieving email messages.

    Shell commands do provide file management, and the moment you realize that almost everything is a file you can start to understand the power of shells. Email messages are nothing but files, they are just on another computer and the shell gives you access to them. The same goes for web pages (wget, links/lynx and even telnet to port 80), video, pictures, sound, invoices, games, even your screen/keyboard/printer/network have an abstraction as a file, whatever...

    I used to teach a 3 months Linux system administration class. The first two weeks my students had no GUI at all, just a shell prompt. The idea behind it was: whatever problem you have, once you have shell access you can start to solve it.

    After using the system for two weeks in shell mode, I let them install whatever GUI they like. About half my class was on gnome, the other half on KDE and a couple were using OpenBox or something else. The point is: it did not matter which GUI they were on, it was just a tool to open a terminal window, everything was done on the shell anyway. In the beginning of the course, everybody had to use the same distro (SuSE), but by the end of the course the students could use any distro or even BSD or HP/UX (we had an HP Itanium system on loan, because I had called it "Itanic" to one of their sales reps and he wanted me to prove me wrong). For most things this again did not matter, and for the things where it did matter (for example firewalls, boot sequences, virtual file systems) it was interesting. For the final exam they had to install an operating system with mail/SaMBa/Apache server using a distro they had never used before, manually editing the configuration files using vi or whatever text editor they liked most. They also received a spreadsheet with usernames and default passwords which they had to convert to a text file and write a script to create the user accounts with correct privileges from that file (they did not get enough time to click on "add user" 200 times). My students went on and became great sysadmins.

    Once you really know how to use the shell, most differences between *nix systems become almost transparent and tedious jobs can be automated easily. So, NO, shells are not "less useful" - shells unlock the true power of your computer.

    --
    /. refugees on Usenet: news:comp.misc
  41. exciting command line tools by Anonymous Coward · · Score: 0

    ls - copies files
    cat - prints contents of a file
    rm - deletes file
    mv - moves file

    1. Re:exciting command line tools by Anonymous Coward · · Score: 0

      ls - copies files

      Ah, that's new to me. Up to now I've only used it to list files, and cp to copy them.

      cat - prints contents of a file

      Not really. It concatenates files and writes the result on the standard output. Since concatenating one file just replicates it, and when connected to a terminal, standard output is printed on screen, it can be used to print files (assuming with "print files" you mean show them in the terminal, not having them printed on paper, unless you happen to have an old teletype terminal), although that's not its primary use (and it isn't even the best command to use for that purpose). Similarly, you can use it to copy files (cat oldfile >newfile), but again, it's not the tool you'd normally use for that purpose. The same also applies for creating new files from scratch (cat >newfile).

    2. Re:exciting command line tools by Half-pint+HAL · · Score: 1

      If you want to view the contents of a text file, you really want to use either "more" or "less". Using "cat" is an ugly hack that is taught far too often in basic shell lessons for the sake of convenience when the files being worked with are a few lines long.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
  42. Shell Life by Anonymous Coward · · Score: 0

    I use a shell for pretty much everything, and for the things that don't i make them use it. For example Cygwin bash shell working well with WMI with stuff like this...
    http://www.commandlinefu.com/commands/view/13031/returns-the-ntfs-windows-file-details-for-any-file-using-cygwin-bash-actual-r-click-properties-info-to-the-term

  43. bc and cal by Skiron · · Score: 1

    The two I use a lot in a terminal is bc and cal.

    Put this in your .bashrc:

    alias bc='bc -i -l' Then just run bc for a interctive calculator:

    (18*(567/23))+67
    510.73913043478260869548

    e.g.

    and cal is brilliant.

    1. Re:bc and cal by benjymouse · · Score: 1

      I pasted (18*(567/23))+67 into the powershell prompt:


      PS C:\Users\Me> (18*(567/23))+67
      510.739130434783

      PS C:\Users\Me>

      That's brilliant!

      --
      Reading slashdot one-liner: (irm http://rss.slashdot.org/Slashdot/slashdot).rdf.item | fl title,desc*
    2. Re:bc and cal by Anonymous Coward · · Score: 0

      The Spotlight search feature in OS X gives you the same answer if you enter that equation into it (no need to hit 'return').

    3. Re:bc and cal by fnj · · Score: 1

      You mean like this in zsh under linux or BSD?

      [fnj@roc]~% echo $(((18*(567/23))+67))
      499
      [fnj@roc]~% echo $(((18*(567/23.0))+67))
      510.73913043478257
      [fnj@roc]~% printf "%.2f\n" $(((18*(567/23.0))+67))
      510.74
      [fnj@roc]~%

      Note the facility of choosing integer versus floating point evaluation, and setting the precision.

      P.S. - I admit I was humbled trying to do this in bash without resorting to bc.

  44. cp /dev/sr0 whatever.iso by Sanians · · Score: 2

    cp /dev/sr0 whatever.iso

    1. Re:cp /dev/sr0 whatever.iso by Anonymous Coward · · Score: 0

      Yes, that's the first-time user's way of doing it - which doesn't do anything about CSS or other copy protect schemes. brasero and dvdcpy use libdecss and cdrtools behind the scenes to take care of that crap.

    2. Re:cp /dev/sr0 whatever.iso by Anonymous Coward · · Score: 0

      don't you need dd to read from unmounted block devices?

    3. Re:cp /dev/sr0 whatever.iso by Anonymous Coward · · Score: 2, Interesting

      Please don't use cp or dd to copy from a disk as they don't do any error checking while copying. Readom does though. For details, see this blog post (not mine btw, I just happen to read it).

    4. Re:cp /dev/sr0 whatever.iso by Sanians · · Score: 1

      don't you need dd to read from unmounted block devices?

      I tested it before posting, despite being pretty sure that's how I'd always done it before, simply to make sure I wasn't posting a stupid answer, since it seemed the GP was going through a lot of trouble to avoid using cp.

      I do recall having some trouble once when using diff to compare a DVD to the image I'd just burnt to it. What I found was that reading straight from the device often returned extra data at the end. I don't know if it was a bug in that particular version of Linux I had at the time or what, but I fixed it up with a Perl script which happily ignored any extra data at the end as long as it was correct for the length of the ISO file, at which point it never gave me any trouble again.

  45. I would recommend reading Neal Stephenson's by Anonymous Coward · · Score: 0

    "In the beginning was the command line": http://www.cryptonomicon.com/beginning.html to understand why GUI's will never be better than the command line in terms of power and ease of use.

  46. All of them by gmuslera · · Score: 1

    Don't dismiss so easily the plumbing tools as minor, good part of the magic on everything happens there, a lot of things have command line interface (even destop programs like openoffice, or gimp), of course a lot of servers can be accessed by commands (mysql, wget/curl) or even for pure graphical tools, you can script a lot with i.e. D-Bus. But something that combines the pieces, like, don't know, extracting urls from a mysql table, obtaining the images from there, making a collage and putting it as background on your desktop, requires just a few lines (if indented) in bash, where the small tools connecting the dots plays an essential role there.

  47. Here's a start... by avm · · Score: 2

    Setup a virtual machine, or a partition, install a BSD (I'm partial to NetBSD), and go to it. Skip the graphical interface packages on installation.

    You want to learn about this, here's how most of us did it (flavor and variant will vary of course). Your motivation determines how much you will learn. Enjoy.

  48. I heart C-64 Command line by Emperor+Shaddam+IV · · Score: 1

    LOAD “$”,8 - Now that was useful!

  49. Re: by davide+marney · · Score: 1

    In the spirit of "command-line tools I use all the time":

    sed - search and replace within files
    git - redistributable file system that tracks changes, often used for version control of text files
    ssh - secure command-line connection to another machine
    scp - secure copy between machines
    diff - compare differences between files

    --
    "We receive as friendly that which agrees with, we resist with dislike that which opposes us" - Faraday
  50. Rick Richardson's Linux tools for geocaching by Rick+Richardson · · Score: 2

    Happy New Year. Whose going to get the FTF?

    From http://geo.rkkda.com/. All are bash and awk tools run via a terminal. Lots of them build upon gpsbabel (e.g. geo-nearest), or ImageMagick (e.g. reverse-montage) or, you get the drift.

    Tools for accessing gc.com...
    (SO) : this program works only for gc.com subscribers

    geo-found List caches found (by you or someone else)
    geo-nearest List the nearest caches to a location
    geo-newest List the newest caches in a state
    geo-placed List caches placed (by you or someone else)
    geo-keyword List caches by keywords.
    All of the above can enter the waypoints into the
    GpsDrive MySQL database.
    geo-html2gpx Convert a gc.com printable web page (such as the
    above commands can produce with the -H option) to
    a GPX file.

    geo-count Count caches found
    geo-usernum Determine gc.com user number (used by geo-count)

    (SO) geo-gid Retrieve cache info by GCxxxx waypoint name
    (SO) geo-gpx Retrieve GPX file by GCxxxx waypoint name
    (SO) geo-demand Request an immediate pocket query email
    (SO) geo-gpxmail Process PQ email using gpx2html
    (SO) geo-gpxprocess Process PQ download(s) using geo-pqdownload and gpx2html
    (SO) geo-pqdownload Perform a Pocket Query download(s)
    (SO) geo-myfinds Schedule a Pocket Query containing your finds.
    (SO) geo-rehides From your found.gpx file, produce a GPX file of rehides
    (SO) geo-correct-coords Correct the coords of cache(s)
    geo-density Compute cache density of an area

    gpx2html Lightly hacked converter from GPX to HTML
    Originally by fizzymagic (v1.90). My version
    fixes issues with HTML in the cache descriptions, adds
    sort by latest log date for easy perusing of recent
    cache activity, and fixes bug in GC[1-9]xxxx.
    gpx-loghistory Print all logs in reverse cron order.
    geo-pqs Figure out what PQs to run to get an entire state.
    geo-state Convenience script; geo-state -? gives usage.
    geo-sdt Replace Size, Difficulty, Terrain from a PQ file
    geo-suffix Replace name with name/TypeSizeDiffTerr/gcid/LatLon
    geo-uniq Unique the tabsep database

    Tools for accessing opencaching.com...
    oc-nearest List the nearest caches to a location
    oc-newest List the newest caches in a state
    EXPERIMENTAL, subject to drastic changes

    Tools for accessing opencaching.us (and .nl, .de,...) ...
    ok-nearest List the nearest caches to a location
    ok-newest List the newest caches in a state
    EXPERIMENTAL, subject to drastic changes

    Tools for accessing navicache.com...
    nc-nearest List the nearest caches to a location
    nc-newest List the newest caches in a state

    1. Re:Rick Richardson's Linux tools for geocaching by Flymo2 · · Score: 1

      tl;dr but I presume you thought it all looked better in monospace.

  51. CLI's Are Not Walled? by DexterIsADog · · Score: 2

    I've been seeing the love for CLI's in a couple of articles here lately, and I'm wondering... why are GUI's "walled gardens", and CLI's are not? The CLI's have their definite boundaries as well. You can't run a function using a system utility that doesn't support it.

    At best, I'd call GUI's walled gardens, and CLI's (larger) fenced in fields with rocks and weeds along with the trees and flowers. Definitely more versatile, not as friendly for some uses.

    To get out of the boundaries of either a GUI or a CLI, you can just write your own code, to create... a GUI or CLI application. You can write a script, or put the equivalent function into a GUI app.

    Disclosure; I've been computing since the Olivetti P-6060 was a cutting edge machine. http://www.old-computers.com/museum/computer.asp?st=1&c=407

    1. Re:CLI's Are Not Walled? by gtall · · Score: 4, Informative

      The best mix I ever saw was with Apple's MPW Commando interface. They had a unix like script language, but when you couldn't recall the special arcane syntax of some command, you could just hilite the command name and hit a key. A Commando dialog box came up formatted with radio buttons, checkboxes, etc. which recorded every dodad the command could use. Clicking and typing into the dialog fields built the text command for you in a pane at the bottom of the dialog box. When you were done, you could hit the run button or copy and paste the command into a command line window or paste it into a script you were building.

    2. Re:CLI's Are Not Walled? by crutchy · · Score: 2

      in some cases gui's only seem like walled gardens because the user doesn't know how to do something, but that doesn't imply that they couldn't

      everything is easy when you know how

      gnome2 has a decent little tool called gconf-editor, which allows you to drill fairly deep into gui configuration

      i'm sure even "windoze" could do a lot of cool things if users bothered to learn about the registry... maybe they shouldn't have to, but if you are willing to learn cli as an alternative it would be reasonable to assume that doing a little homework on the registry wouldn't be out of the question

    3. Re:CLI's Are Not Walled? by Anonymous Coward · · Score: 0

      I miss A/UX!

      Might be time to pull the old IIci down from the attic and go on a trip down memory lane...

      Anybody know if the Jagubox FTP server is still running???

    4. Re:CLI's Are Not Walled? by angel'o'sphere · · Score: 1

      They had a unix like script language
      Sigh :D "unix like scripting language" ... tz tz.
      Well, MPW was running a tcsh. A real unix shell and had like cygwin in our days a hugh set of commands ported to Mac OS (I think somewhere between OS 4 and OS 6, ofc it was available for later systems as well, but I did not use Macs after OS 7 till OS X). It was basically a teaser to get developers hooked onto AUX (the apple unix of that time)

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    5. Re:CLI's Are Not Walled? by Half-pint+HAL · · Score: 1

      GUIs aren't walled gardens, but GUI apps often are. The nature of the command line means that there is no practical difference between human control and machine control. With a GUI app, you have to explicitly program an API as an additional item in order to allow efficient machine control. The GUI supplies the walls -- the application is the garden.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    6. Re:CLI's Are Not Walled? by sudon't · · Score: 1

      You can have the best of both worlds. That's why I like OS X - a great GUI, and a unix CLI when you need it. Doesn't have to be an either/or situation.

      --
      -- sudon't

      Air-ride Equipped

    7. Re:CLI's Are Not Walled? by vtcodger · · Score: 1

      Maybe "walled garden" isn't the proper term, but there are some legitimate gripes about GUIs.

      1. As a practical matter, they are more or less unscriptable -- which means that tedious,repetitive tasks like backups, malware scans, etc frequently require my attention instead of being left to the computer which is much better at tedious, repetitive tasks than I am. I didn't buy this thing to make my life more difficult.

      2. GUIs are hard to write and harder to test (because of the user can do any damn thing any time they wish aspect). As a result they are frequently buggy.

      3. For those of us who use relatively minimal hardware (and there are a LOT of computers out here that are underpowered relative to the applications and OSes inflicted on them), GUIs tend to be kind of slow. Virtually every time I visit a doctor or other professional, I hear complaints about slow boots, eternal logins, slow software, etc, etc, etc.

      4. The number of people who think they can design an effective, easy to use, GUI interface seems to be MUCH smaller than the number who can actually do so.

      That said, GUIs have a valid place in the universe. For example, I don't think I'd care to try to do Google Maps from the command line. But the idea that GUIs are inherently superior to CLIs for all purposes has always seemed very odd to me.

      --
      You can't see ANYTHING from a car, You've got to get out of the goddamned contraption and walk...Edward Abbey
    8. Re:CLI's Are Not Walled? by fisted · · Score: 1

      It's about being able to combine programs in a CLI.

      Program A, which produces useful output O from some input I need not 'support' that flexibility itself, the point is that Program B can take O as its input, performing additional operations/transformations thereon.
      That is something not possible with a GUI

    9. Re:CLI's Are Not Walled? by Anonymous Coward · · Score: 0

      The best mix I ever saw was with Apple's MPW Commando interface. They had a unix like script language, but when you couldn't recall the special arcane syntax of some command, you could just hilite the command name and hit a key. A Commando dialog box came up formatted with radio buttons, checkboxes, etc. which recorded every dodad the command could use. Clicking and typing into the dialog fields built the text command for you in a pane at the bottom of the dialog box. When you were done, you could hit the run button or copy and paste the command into a command line window or paste it into a script you were building.

      What about OSX now? It's got a real unix on it. All the commands are available in usual bin & sbin directories. Manpages work, appropos works.

    10. Re: CLI's Are Not Walled? by Anonymous Coward · · Score: 0

      Let's not forget that decent window managers are EWMH-compliant, which gives you fairly robust control of windows from the shell/command line.

    11. Re:CLI's Are Not Walled? by Common+Joe · · Score: 1

      Never used it, but this is the holy grail of command line operations -- a proper merging of command line and GUI. I can't remember jack and have to look up a lot of stuff. (Curse of being a jack-of-all-trades.) This kind of stuff being standard would help me tremendously... and I seriously doubt I'm the only one.

    12. Re:CLI's Are Not Walled? by drsmithy · · Score: 1

      But the idea that GUIs are inherently superior to CLIs for all purposes has always seemed very odd to me.
      I don't think I've ever seen anyone make the argument that GUIs are inherently superior.

      I've seen plenty of UNIX Nerds argue all you need is a CLI, though. I expect I'll even see a few more as I scroll down this page.

    13. Re:CLI's Are Not Walled? by Darinbob · · Score: 1

      Most CLIs start life intending to be used an unknown variety of commands, tools, and utilities, whereas most GUIs start life intending to be a one-stop-shop for the job at hand. Granted there are some walled-garden style of CLIs but they tend to be rarer, intended for turnkey systems. Even the simplistic Windows "cmd" command line is not a walled garden.

    14. Re:CLI's Are Not Walled? by Sique · · Score: 1
      GUIs are walled gardens in the sense that it's not easy to expand a GUI once it is compiled and shipped. With a command line interface you just install another binary, and your CLI is expanded by one command.

      A CLI also allows you to concat several commands into larger, more complex "commands" (shell scripts, batch files...). Try that with a GUI! Once a GUI is ready, it stays that way until you install the new version of the GUI. Ok, there are some GUIs you can expand with plugins, but the plugins need to be written exactly for this one GUI framework, while a command line interface works everywhere. Imagine a binary that can only be started from tcsh and refuses to run under bash or ksh...

      --
      .sig: Sique *sigh*
    15. Re:CLI's Are Not Walled? by DarwinSurvivor · · Score: 1

      Now if only it supported any filesystems shared by both Linux and Windows that can store a 4GB+ file...

  52. /rdb by matria · · Score: 2

    /rdb - definitely not free, but a fascinating use of the shell and shell extensions as a database management system. Don't know if it's even still available. The NoSQL developer Carlo Strozzi said that he was inspired by it. Used to be at http://www.rsw.com./ An excellent white paper, "The UNIX Shell As a Fourth Generation Language" describes it, and there was a book too - "Unix Relational Database Management". I used it nearly 20 years ago for a retirement home's database when their DOS/dBase system broke down. Slackware Linux version 1 ran fine on their old PC. In fact, that was my first Linux kernel compilation.

  53. command line spelling by binarybum · · Score: 1

    great. I've been looking for a good command line spell check. All the graphics on the gui spell checkers are very distracting.

    --
    ôó
  54. cat /dev/urandom /dev/audacity would be nice by jago25_98 · · Score: 1

    Great question.

    Bitcoin: https://github.com/spesmilo/sx , GoxCLI
    Calandar; 'cal'
    wget, curl with cut, grep & awk
    mplayer... with acsii output, transcode,
    irc bots such as malware command and control interfaces - are there benign examples?

    There are very few financial command line tools. It's strange but there doesn't seem to be a way to buy or sell securities, forex or futures.

    Can anyone tell me why you can't |pipe| GUI programs....? Why can't you pipe audio live from /dev/urandom from a terminal to audacity for example?

  55. Re: Lots of programmers for hire by Anonymous Coward · · Score: 0

    Then learn to use Google before you start asking questions that have been answered a million times over.

  56. Son, Let Me Tell You a Little Story by Greyfox · · Score: 2
    In 1987 I took an assembly language class. We were presented a PDP 11/03 and an 8 inch floppy disk and instructed on how to type the bootstrap sequence into the computer in octal to cause the system to jump to the first instruction on the floppy disk. The GUI is good for one thing and that's standing between you and understanding what's really going on in your computer.

    Now I wouldn't even comment on this story, but I have recently been wondering why we haven't seen new developments in command line shells in the last couple of decades or so. The last big advance was tab completion in bash and then we just... stopped. Now I could see the argument that bash does everything we need it to, but I'm not sure I completely buy that. For one thing I'm constantly working around deficiencies in the shell. For another, we have seen OS advances we could be taking advantage of.

    The UNIX shell model for the last three decades is, you run a program and the shell finds it in the path, forks a child process, execs the program and waits on the child process. When the child process exits, the shell resumes and has the return status of the child process available for examination. And that does actually have its place. But it doesn't need to be all there is anymore. With threads, there's no reason not to have the ability to initiate a program in parallel in the same memory space. Obviously there are some drawbacks to that -- if the program crashes, you'd lose your working shell. But it'd have some advantages, too -- the program could modify the shell's environment, share or persist objects in local memory, and customize the shell's behavior much more easily than we do today. We'd move from having files on disk to having resources we can take advantage of. Naturally you should still be able to revert to the old fork/exec model for some applications.

    I'll probably write some code to explore this when I get my current couple of projects squared away.

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

    1. Re:Son, Let Me Tell You a Little Story by vtcodger · · Score: 1

      The UNIX shell model for the last three decades is, you run a program and the shell finds it in the path, forks a child process, execs the program and waits on the child process. When the child process exits, the shell resumes and has the return status of the child process available for examination. And that does actually have its place. But it doesn't need to be all there is anymore.

      It's not the mechanism you have in mind, but appending an & to the end of a shell command will run the command without locking up the user interface. For that matter, you can detach from a running CLI program with ^Z.. There are ways to reattach of course, but I don't remember what they are as I never use them.

      --
      You can't see ANYTHING from a car, You've got to get out of the goddamned contraption and walk...Edward Abbey
    2. Re:Son, Let Me Tell You a Little Story by Greyfox · · Score: 1

      ^z, bg, fg. Most of the time when I'm working around shell mechanics, it's because everything's run in another process. So you can't, for example, change your current environment with a compiled application (You can with a shell script and "source", but that's pretty much the only workaround.) You can also use "screen", which is actually fairly useful for its range of things.

      --

      I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

    3. Re:Son, Let Me Tell You a Little Story by Darinbob · · Score: 1

      Tab completion was years before Bash. Ksh had it first in the sh-family, but existed earlier in non-Unix things. For a really powerful shell, there were always the command line on various lisp machines, where you could use the command line along with the mouse (ie while typing the command you can get a list of options and then click on one to insert it).

      What Bash did best was unify sh and csh into one shell more coherently than had been done before.

    4. Re:Son, Let Me Tell You a Little Story by Anonymous Coward · · Score: 0

      With threads, there's no reason not to have the ability to initiate a program in parallel in the same memory space. Obviously there are some drawbacks to that -- if the program crashes, you'd lose your working shell. But it'd have some advantages, too -- the program could modify the shell's environment, share or persist objects in local memory, and customize the shell's behavior much more easily than we do today. We'd move from having files on disk to having resources we can take advantage of. Naturally you should still be able to revert to the old fork/exec model for some applications.

      This is an approximate description of PowerShell. To make it work you need a language-neutral architecture for building modular software. In Windows there's both COM and .Net. In the UNIX world there has always been great opposition to anything similar, perhaps because COM is confounded with ActiveX in the minds of many developers. Hence I doubt we'll see your ideas realised on UNIX.

    5. Re:Son, Let Me Tell You a Little Story by Anonymous Coward · · Score: 0

      There are a handful of new developments, Powershell, zsh, E17's Terminology and Fish. Powershell is probably the most interesting but it's pretty closely tied to the Windows APIs. You've got an interesting idea but a good implementation sounds tricky.

  57. New users don't know about CLI by Anonymous Coward · · Score: 0

    New users never heard about bash. We live in the 21th century. By now no one should use things like grep, sed or awk anymore. The developers around systemd make sure that this functionality is soon hidden away from the audience.

    1. Re:New users don't know about CLI by Anonymous Coward · · Score: 0

      New users never heard about bash. We live in the 21th century. By now no one should use things like grep, sed or awk anymore

      perhaps it is you who needs to get with the times... n00b

    2. Re:New users don't know about CLI by Half-pint+HAL · · Score: 4, Interesting

      We live in the 21th century. By now no one should use things like grep, sed or awk anymore.

      Yes. It would be wrong to use tried, tested and computationally efficient tools. If it doesn't have a GUI that slows me down and reduces my operational efficiency, and a crapload of bugs that won't be fixed before being obsoleted, I don't want to know about it.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    3. Re:New users don't know about CLI by hawguy · · Score: 5, Informative

      New users never heard about bash. We live in the 21th century. By now no one should use things like grep, sed or awk anymore. The developers around systemd make sure that this functionality is soon hidden away from the audience.

      Right, and that's the problem, new users don't understand how to use command line tools so everything gets loaded into a GUI like Excel or Access. We had a user insist that he had to have MS Access so he could process a big log file to extract a few records from it -- it was too big for Excel. He was a couple hours into figuring out how to get the file loaded into an Access table when someone asked me if I could help. 10 minutes after installing ActiveState Perl, I wrote a script to extract the records they needed, it ran for a couple hours to churn through over 100 gigabytes of data (limited by the speed of the fileserver), then after we had the data, I used a couple regular expressions to pull the data fields they needed out of a free form text field, and then 20 minutes later, used the data in the file to output the SQL commands that they needed to fix up the database (which is why they where looking through the file in the first place). They had originally planned on spending at least 3 days on this project. The Windows "find" command line took may have helped preprocess the file, but its lack of regular expression support would have meant running it dozens of times to get all of the data they needed.

      Command line tools are still useful, even in the 21th century. If I didn't have Perl, then grep and/or awk would have been able to extract the data with a single pass through the file.

    4. Re:New users don't know about CLI by Anonymous Coward · · Score: 0

      We live in the 21th century. By now no one should use things like grep, sed or awk anymore.

      Yes. It would be wrong to use tried, tested and computationally efficient tools. If it doesn't have a GUI that slows me down and reduces my operational efficiency, and a crapload of bugs that won't be fixed before being obsoleted, I don't want to know about it.

      A lot of the companies want puppet and chef and don't really care that you know bash. They want cheap labor that can be trained to use a single tool, not someone that really knows their way around the system. They want to reduce their labor costs and hire trained monkeys.

    5. Re: New users don't know about CLI by Anonymous Coward · · Score: 0

      God, I hope that was sarcasm.. this is perhaps the stupidest comment I've ever seen on /. (and that is saying something..)

    6. Re:New users don't know about CLI by Twylite · · Score: 1

      findstr has POSIX basic regular expression support (almost) and has been available since Windows 2000.

      --
      i-name =twylite [http://public.xdi.org/=twylite], see idcommons.net
    7. Re:New users don't know about CLI by fnj · · Score: 1

      We live in the 21th century. By now no one should use things like grep, sed or awk anymore [sic]. The developers around systemd make sure that this functionality is soon hidden away from the audience.

      As long as you can hit Alt-F2 or whatever the accessor is, and type in "bash", and "/bin" and/or "/usr/bin" are filled with the goodies, nobody is "hiding" anything from you. So far, I have seen no sign that anybody has any intention of even trying to "hide" the machinery.

      Your sarcastic "no one should use things like grep, sed or awk" isn't even that far of the mark in all seriousness. All it needs is the modification to "most users most of the time should not need to use things like grep, sed or awk" - without taking them away, of course.

      There. I got through a comment without taking a jab at Systemd. Rest assured, I will take it on when the context justifies it, but that is not the case here.

    8. Re:New users don't know about CLI by Anonymous Coward · · Score: 0

      Just for future reference the findstr command in most modern windows' can use regex. Some limitations, but useful where you're doing work on a system where you can't just install Perl or something due to lockdown.

    9. Re:New users don't know about CLI by Gr8Apes · · Score: 1

      There's a host of POSIX tools out there for windows. In 2004, they were still all substandard to those available with any other POSIX compliant system I'd used up to that time, and some were faulty. (not saying findstr is, just that on windows POSIX tools have tended to be less than fully reliable, for various reasons including a sub-standard file system)

      --
      The cesspool just got a check and balance.
    10. Re:New users don't know about CLI by Gr8Apes · · Score: 1

      New users never heard about bash. We live in the 21th century. By now no one should use things like grep, sed or awk anymore. The developers around systemd make sure that this functionality is soon hidden away from the audience.

      Right, and that's the problem, new users don't understand how to use command line tools so everything gets loaded into a GUI...

      Command line tools are still useful, even in the 21th century. If I didn't have Perl, then grep and/or awk would have been able to extract the data with a single pass through the file.

      Absolutely, now try parsing through one of those files on a remote system, and the CLI becomes your one and only friend, at least in the *nix world, AFAIK, windows still fails horribly at this basic task. Imagine if you could have just ssh'd into the file server and run the query remotely, you could have skipped the whole downloading of the dataset in the first place.

      --
      The cesspool just got a check and balance.
  58. Unix Power Tools by Anonymous Coward · · Score: 0

    You need to find a copy of Unix Power Tools from O'Reilly

    The Unix philosophy is a large collection of small tools connected by pipes. It means that everything is scriptable.

  59. No true Scotsman programs in VBA by tepples · · Score: 1

    Anyone who must admit that they have more experience with VBA than anything else should not claim to be a programmer.

    Even companies that make commercial off-the-shelf ERP software in Access+VBA, such as Stone Edge? Besides, "no true programmer" is considered a fallacy.

    1. Re:No true Scotsman programs in VBA by Anonymous Coward · · Score: 0

      Erotic roleplay software? Is that like an AI or a chat client?

    2. Re:No true Scotsman programs in VBA by Anonymous Coward · · Score: 0

      You link to some "tvtropes" site and Wikipedia. Yeah, I'm totally going to trust those...

  60. posting age by l3v1 · · Score: 1

    I'd like to make mandatory to post the age of a submitter alongside any 'news' item. Why? Because if the poster of this item is a 10 year old, then I'd say OK, someone getting into the game is looking around, good job. However, I don't think this is the case here, I even thought first that it was a joke, which it doesn't seem so. I'd suggest redirecting noobies into other forums instead of posting their totally useless submissions on /.

    --
    I am putting myself to the fullest possible use, which is all I can think that any conscious entity can ever hope to do.
  61. are you fucking dense by davydagger · · Score: 1

    Do you really let someone with less than 3 months experiance with big boy OSs fucking post. This is something someone with no real computer experiance would think.

    >Less useful but still useful are command shells. These provide file management mostly. I believe some of them may allow for sending and retrieving email messages.

    Thats not true, not on any modern operating system. It was only true on windows, before the introduction of PowerShell.

  62. power users and programmers? by Anonymous Coward · · Score: 0

    power users and programmers use command lines? I thought they edit the source code and recompile the code. I learned something new.

  63. Re:cat /dev/urandom /dev/audacity would be nice by deviated_prevert · · Score: 1

    try ecasound with a chain setup you can pipe audio, fully scripted it can do just about everything directly from alsa or if you compile it with jack it will also use jackd. But esd is very versitile, I am surprised that more do not know about how versatile and easy it is to use.

    --
    This message was not sent from an iPhone because Peter Sellers really was a deviated prevert without a dime for the call
  64. 2014 resolution: mellow out by hodet · · Score: 4, Insightful

    The elitists are out in full force today. Ya the submission is nothing new to many of us but instead of ripping submitter a new one why not share your knowledge with him. Back in 97 I bought Oreilly's Linux in a Nutshell reference book. That book is still on my desk today, beaten up an tattered but sill useful.

    Happy New Year fellow neckbeards! ;-)

    1. Re:2014 resolution: mellow out by serviscope_minor · · Score: 1

      Add to that "unix power tools". Not an in-depth guide to any one tool, but a smorgasboard of what's commonly available, covering the shells, the usual shell commands (awk, sed, grep, find, mail), perl and a few other things.

      --
      SJW n. One who posts facts.
  65. Invaluable utility program by SpaghettiPattern · · Score: 3, Funny

    man(1)

    --

    I hadn't the slightest objection to his spending his time planning massacres for the bourgeoisie... (P.G. Wodehouse)
  66. More CLI-Fu by Bob9113 · · Score: 4, Informative

    Less useful but still useful are command shells. These provide file management mostly.

    Ohhh, baby. If you think ImageMagick is cool by itself (and it is), just wait 'til you start to grok how powerful those "less useful" command shells are for gluing those complex tools together. It will blow your hair back.

    Say you have a directory tree with a few hundred images scattered through it, and you want to create thumbnails for all of the images in a parallel directory structure; ImageMagick will do the thumbnail part, CLI-Fu will handle the directory traversal and turn a three hour job in to a three minute one.

    Learn these for starters:

    sed - text parser and transformer, for mutating file names and munging commands
    awk - ultra-terse programming language, great for building more complex commands than you would with sed
    find - traverse a directory tree and list files with conditional matching
    xargs - process a large list of things (like files found with find) in batches
    grep - filter out elements of a list based on string pattern matching
    egrep - enhanced grep, includes more advanced patterns and wildcards
    sort - sort lists numerically or alphabetically
    wc - count the elements of a list, words in a line, or other things
    wget - download a URL
    curl - read a URL to stdout

    Seriously, when you start piping those things together with the more complex command line tools like ImageMagick and FFMpeg, you will be astonished at the mass data processing you can do with a few dozen characters on the command line.

    1. Re:More CLI-Fu by serialband · · Score: 2

      The shell includes for, if, else, while and variables that allow you to write simple to complex scripts to manage all the self contained unix commands listed by Bob9113.

      Here's 3 more useful unix commands to add to Bob9113's list

      apropos COMMAND_or_COMMAND_FRAGMENT - to find the command you might want
      which COMMAND - to find the location of the command on the filesystem
      man COMMAND - to find the manual page for the command

      There is an entire book dedicated to just awk and sed, which are quite useful programs on their own.

  67. Re:No going to happen... by Anonymous Coward · · Score: 0

    Programmers pissing off Programmers...

  68. all applications in cli wouldn't be bad by Anonymous Coward · · Score: 0

    Maybe it would of been nice to have the option to run applications(or all) like gimp, blender, inkscape, vlc, web browsing, steam in cli mode instead in GUI(desktop mode) like the the old dos or unix way.

  69. Re:The Industry by Anonymous Coward · · Score: 0

    I would bet the modern softwere industry is smarter then you!

  70. Good excuse to list a bunch of ncurses apps I like by Anonymous Coward · · Score: 0

    The submission itself seemed a bit rambling, so I'm not entirely sure what sort of CLI programs he or she was expecting, but I first thought it was going to focus on various text user interfaces, such as the kind usually made with ncurses. Some interesting ones I use or have used in the past:

    screen: the 900 pound gorilla of terminal management. Multiple shells, hotkeys to switch, window splitting, detaching from, and reattaching to, the session without losing processes. Everyone should have screen installed.

    dvtm: a tiling window manager for your shell. Not as feature-filled as screen, but less futzing about required for multi-window views. If all you want is multiple shell views at once, without all the other stuff, dvtm is a good choice.

    newsbeuter: console RSS reader. News feeds are a good fit for command line, and it can import OPML files exported from other readers. There's also nrss but I haven't used it much due to lack of OPML import/export.

    finch: A command-line version of Pidgin, using the same libpurple backend and plugins. May even share contact information between Pidgin for seamless use -- can't remember for sure, though. Draws its own stacking windows for the contact list and IM windows, much like the old DOS IDEs.

    elinks: Best text-based browser right now, in my opinion. If you're still using lynx or links2*, probably worth switching.

    weechat: IRC client, alternative to the (in my experience) better-known irssi. Combine with bitlbee for a different take on IM.

    bitlbee: An IM client whose front-end is an IRC server. You connect via IRC client of choice and interact with your contacts via channel (by going "username: message here" to send a message to 'username') or via private message windows. Good for keeping track of multiple chats at once, since they function like a group chat would on your side, but none of your contacts see anything except what you direct to them.

    calcurse: A basic calendar/organiser. Not much to say, lets you set appointments, to-dos, etc.

    noping: an ncurses-based ping tool. Ping multiple targets simultaneously, with statistics always placed at the bottom, and unusual things like spikes in latency or timeouts highlighted in different colours.

    htop: like top but a lot nicer to use and look at.

    nethogs: Displays network utilisation on your machine, separated by process. Lets you see just how much bandwidth a stream or some other download (or upload) is using.

    jnettop: Like nethogs, but focused on sorting by source, destination, port, and protocol rather than by process.

    nvlc: ncurses front-end to vlc, for keyboard control of the VLC media player. If you're not interested in playing videos, add the --no-video switch and it becomes a passable command line audio or stream player.

    nano: Available almost as often as vi, and easier for a beginner or occasonal command line user to acclimate to quickly.

    alpine: Oldie but goodie. Any old schooler will likely remember pine, and it's still around in the form of alpine in the same way nano is keeping pico use alive.

    mc: Midnight Commander. Still a damn fine file browser, and well worth having around.

    nethack: because not everything has to be about work. Other roguelikes of note are angband, tome, and one of my favourites, the seemingly abandoned zangband, which was based loosely around Roger Zelazny's Chronicles of Amber.

    Some of these will be obvious to anyone familiar with the command line already, a few might have passed by unnoticed even to veteran shell users, and hopefully all of them will be worth investigating for any newcomers to the command line.

    I realise I omitted vi and emacs; that's a whole war of its own and not worth getting into here.

    * Not TUI-related, but I find running links2 in graphical mode (links2 -g) to be a good way to do image searches on images.google.com. Fast, no frills, just the images and no bullshit.

  71. Powershell? by Anonymous Coward · · Score: 0

    Powershell: the most excessively verbose and yet still incomprehensible CLI scripting language yet developed.

    Sample:
    Powershell
    $strComputer = "."

    $colItems = get-wmiobject -class "Win32_NetworkAdapterConfiguration" `

    -computername $strComputer | Where{$_.IpEnabled -Match "True"}

    foreach ($objItem in $colItems) {

    write-host "Hardware Address:" $objItem.MACAddress

    Bash /sbin/ifconfig | grep -Eo ..\(\:..\){5}

    1. Re:Powershell? by Anonymous Coward · · Score: 1

      Huh, and I suppose you wrote the Powershell out in the longer way just by coincidence? While that longhand version might be better in a script for documentation purposes, it's way more verbose than is needed for a quick cmd-line run.


      PS C:\windows\system32> Get-WmiObject win32_networkadapterconfiguration | ? IpEnabled | select MACAddress

      MACAddress
      ----------
      8C:89:A5:02:47:F4
      08:00:27:00:68:35
      00:50:56:C0:00:08

      - Default computer for Get-WmiObject is the current computer so no extra arg needed
      - The class is the first positional parameter so no need to qualify it with "-class"
      - No need for the quotes around class name since powershell knows the expected parameter type
      - You can use the ? alias for the where-object cmdlet and avoid the extra code block. Or you could write it as "where {$_.IpEnabled}" for a little extra clarity.
      - Again powershell is strongly-typed so IpEnabled is a boolean and PS knows that so no need to string match in the where
      - Curiously, you use the pipe with the where but then go on to use an explicit loop for getting the results - why not just use the implicit loop of a pipe again?
      - Why use write-host when you can just keep the results streaming for the next step in the pipeline, if desired?

      Now, the need for get-wmiobject is slightly unfortunate. Usually, relying on the WMI object is a band-aid until someone writes a cmdlet to encapsulate similar functionality so there are likely already cmdlets that simplify this further. In fact, (...googling...) it looks like there are network-adapter cmdlets in server 2012 and win 8.1 so it may just be a matter of upgrading PS. Since PS can run native commands, you could run "ipconfig" like normal and parse the output with select-string and it would look similar to your bash version but you'd lose all the strongly-typed niceness so it's a trade-off.

    2. Re:Powershell? by Anonymous Coward · · Score: 0

      You can also replace Get-WmiObject with its alias: gwmi

    3. Re:Powershell? by benjymouse · · Score: 1

      PowerShell: Get-NetAdapter | select macaddress
      Bash: /sbin/ifconfig | grep -Eo ..\(\:..\){5}

      Which is shorter?
      Which is more readable?
      Which is more robust against changes (like new properties/columns)?
      Which is more consistent across related commands?
      Which is more discoverable?
      Which is more extensible?

      Note how the PowerShell version does *not* need to engage in string parsing, and how it does *not* need to rely on specific file content formats. The advantages of objects in the pipeline.

      Btw, if you want PowerShell to output in the same metadata-stripped format as from bash/ifconfig, you can make the PowerShell command even shorter, without sacrificing readability:
      PowerShell: (Get-NetAdapter).macaddress

      --
      Reading slashdot one-liner: (irm http://rss.slashdot.org/Slashdot/slashdot).rdf.item | fl title,desc*
    4. Re:Powershell? by benjymouse · · Score: 1

      Huh, and I suppose you wrote the Powershell out in the longer way just by coincidence? While that longhand version might be better in a script for documentation purposes, it's way more verbose than is needed for a quick cmd-line run.

      While it is generally true that using the longer versions of cmdlet names and parameter names and using named parameters instead of positional ones increases readability in scripts, this specific "longer version" is just stupid. It has been artificially made longer and more complicated and has actually *lost* readability bc of that process. One can only guess to the intentions behind that "example". It is certainly very, very bad PowerShell.

      In fact, (...googling...) it looks like there are network-adapter cmdlets in server 2012 and win 8.1 so it may just be a matter of upgrading PS.

      Yes. In fact, the functions from the NetAdapter module has been automatically created as wrappers from WMI objects.

      --
      Reading slashdot one-liner: (irm http://rss.slashdot.org/Slashdot/slashdot).rdf.item | fl title,desc*
  72. WTF by nurb432 · · Score: 1

    Why is this even a story? Has this guy ever heard of an API? GUIs are not 'walled gardens'..

    Moron.

    And shame on the one that approved this.

    --
    ---- Booth was a patriot ----
  73. So, you're saying you want the CLI to atrophy by zakkudo · · Score: 1

    Hairyfeet, back at ya.

    I moved to Linux because from Mac OS X *because* of the command line. It is a first place citizen. You can expect almost all programs on it to support commandline options and such.

    Here's my beef. When someone says you should be able to do everything in the GUI, they are also implicitely stating that you should not be able to do everything through the CLI. They are stating that the CLI side should atrophy because noone is using it. This is what happened on Windows. The Mac OS X commandline only works because it is based on someone elses work, who probably maintains it on a machine where they have to use the CLI everyday.

    My only real gripe with the Linux command line is I would like to see bash replaced with a rethought interactive shell. (csh *har* *har* *ahahahaha*) Probably something more like the the ruby irb rather than something c-related would be good.

    Linux should change, but it should not try to be something it is not. Us Linux people, we like our utilitarian pickup truck. It helps us to get our shit done. If you switch it out with a shiney sports car, you are fundimentally alienating the current core audience. We've seen the awkwardness this can put companies like Nintendo in.

    1. Re:So, you're saying you want the CLI to atrophy by serialband · · Score: 3, Insightful

      Hairyfeet, back at ya.

      I moved to Linux because from Mac OS X *because* of the command line. It is a first place citizen. You can expect almost all programs on it to support commandline options and such.

      ....

      OSX is based off BSD now, so there are plenty of command tools available to you. All your basic linux commands work in OSX as well as several additional useful OSX command tools that just don't exist elsewhere. I frequently run command line scripts to configure OSX and install numerous pieces of software on several Macs. You can also install Fink, or MacPorts, or Homebrew to install plenty of additional useful software. It's all there if you learn how to use OSX on the command line.

      Windows also has a command line, and the vast majority of Windows software can be installed on the command line. There are many useful command line utilities that vastly speed up setup of the a windows system. You could also install cygwin if you really want unix style commands. With powershell, there's less of a need to have cygwin. In a Domain, you can use group policy to manage numerous systems, but that's not available if you're not in a domain. If you manage systems not in a domain, or before you join it to a domain, you can do just about everything on a local trusted network with command line tools in a batch file script or powershell.

      Many people think of Windows or OSX as GUI only, or mainly, have never really sat down to find the command line way of doing it because the GUI was always there as a crutch. The GUI was so well done that they never bothered seek out the command line. On linux, the GUI came much, much later. In the beginning, some of the linux GUI, like the early SAMBA config GUI that wiped smb.conf, was quite broken. There's still work to be done with the GUI.

      Don't mistake a useful GUI for lack of a command line on OSX or Windows. It's all there and you've just never learned to use it. The linux GUI is not as well designed and still needs more work to get to where Windows and OSX are. That's probably why most linux users are still going to the command line. Eventually, that will change and it will mainly be sysadmins and certain power users that do any command line on linux as well.

    2. Re:So, you're saying you want the CLI to atrophy by tlhIngan · · Score: 1

      OSX is based off BSD now, so there are plenty of command tools available to you. All your basic linux commands work in OSX as well as several additional useful OSX command tools that just don't exist elsewhere. I frequently run command line scripts to configure OSX and install numerous pieces of software on several Macs. You can also install Fink, or MacPorts, or Homebrew to install plenty of additional useful software. It's all there if you learn how to use OSX on the command line.

      Actually, many of the OS X utilities are really frontends for the command line. Disk Utility requires the "diskutil" CLI tool to mount, unmount, create, format, partition, etc disks - including support for esoteric things like Fusion Drive can all be done via the command line.

      And through things like AppleScript, many GUI apps are "scriptable" as well (OS X ships with ruby, perl and python that as script-enabled so those languages can control GUI apps). I think it's actually a rare instance where you are forced to use a GUI on OS X as there are many CLI ways to do it.

      OS X may be a bad example of a GUI-first OS since it's practically impossible by default to not make a scriptable program - GUI or CLI. Even many GUI programs take command line arguments.

      About the worst thing is that OS X CLI arguments are non-standard and verbose.

    3. Re:So, you're saying you want the CLI to atrophy by ahabswhale · · Score: 1

      "About the worst thing is that OS X CLI arguments are non-standard and verbose."

      Like what? I just haven't found this to be an issue.

      --
      Are agnostics skeptical of unicorns too?
  74. Two applications with CLI come to mind... by rnturn · · Score: 1

    Gnuplot

    R

    I use those directly from the application's CLI or write 'scripts' that I redirect into the application or `source' from the app's CLI. I'm sure I could think of others but those are the ones that quickly come to mind.

    The OP must be coming from Windows World where CLIs are relatively few and far between. Wonder what they'd think about writing Expect scripts to drive CLI applications on UNIX/Linux? That's the sort of thing I would suggest to Windows folks to watch their heads explode.

    --
    CUR ALLOC 20195.....5804M
  75. Wrong date! by Anonymous Coward · · Score: 0

    It's the first of January, not the first of April.

  76. uh... by Tom · · Score: 1

    Ok, everyone has to start somewhere, but really? You've just uncovered the cool commandline tools available on an operating system that has it's GUI added-on as an afterthought ?

    It's a bit like discovering that Windows can be used with - you won't believe it - a mouse! And some tasks are just so much easier! Wow!

    Seriously. Don't Ask Slashdot. Commandline tools are the bread and butter. Almost everything that's not Gnome or KDE (aka cheap-windows-rip-off) has commandline functionality. So asking such a broad question is guaranteed to give mostly useless answers. Ask (or better, yet: Google) for specific use cases and you'll find plenty of answers, usually several different tools that can do the job.

    --
    Assorted stuff I do sometimes: Lemuria.org
  77. gardens by Tom · · Score: 1

    GUIs are walled gardens in that features available in one piece of software is not available to other pieces of software.

    That is actually blatantly false. It appears true because most people who write GUI software don't give a flying fuck about interoperability, while UNIX commandline tools are mostly expected to work as filters, a concept that by itself guarantees interoperability.

    But if you look at the OS X world, for example, where universal drag & drop is pretty much a reality, the same is true of the GUI. I can drag almost everything from almost everywhere to almost everywhere else and it'll just work.

    Interoperability is not a feature of GUI or no GUI but of developers investing the effort to make it, or not.

    --
    Assorted stuff I do sometimes: Lemuria.org
  78. How about rsync? by Anonymous Coward · · Score: 0

    rsync is awesome, combine it with an SSH tunnel and you can mirror for your backups and then copy the result with hard links to make snapshots in time without duplication saving space. rsync just "breaks" the hard links when a file has changed and you can just browse the filesystem by directory where you just use the date as the directory name for the top of the tree.

  79. pop3 and Google by Ken_g6 · · Score: 1

    Other Internet newbies like Microsoft and Google have gone out of their way to make their customer's emails illegible.

    I get my email from Google over POP3. pop.gmail.com:995. But it requires SSL, which I don't know how to emulate with anything at the command line like telnet. At any rate, Thunderbird saves my emails as plain text files, and that's good enough for now.

    --
    (T>t && O(n)--) == sqrt(666)
    1. Re:pop3 and Google by msauve · · Score: 3, Insightful
      "I get my email from Google over POP3. pop.gmail.com:995. But it requires SSL,..."

      Not a problem...

      openssl s_client -connect pop.gmail.com:995

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    2. Re:pop3 and Google by stoborrobots · · Score: 1

      ... it requires SSL, which I don't know how to emulate with anything at the command line like telnet.

      socat is a telnet/netcat clone with SSL and readline baked in. I used to (in a former life) regularly hit imap servers with:

      bash$ socat READLINE SSL:mailserver:993

    3. Re:pop3 and Google by nullchar · · Score: 1

      OpenSSL to the rescue!

      $ openssl s_client -connect pop.gmail.com:995

  80. Bout Tree Fiddy Buckaroo by Anonymous Coward · · Score: 0

    What's the going rate for a proprietary software shill these days jonesy?

    'Bout tree fiddy, Buckaroo.

  81. The shell is least useful?? !!! by Anonymous Coward · · Score: 0

    The submitter obviously has no clue what he's talking about...

    There's a bunch of UIs like he mentioned and there may be more... then the rest of the world is the shell...
    The majority of the world's computing is based on command line, which is running on the shell.

    Out of many many types of engineers, system and operations engineers are the top paid ones...
    And out of those top paid ones, the ones that know how to use command lines get paid more than the rest.

  82. Unix GUI by Uecker · · Score: 1

    A bit offtopic, but what I find sad is that there is no GUI following the Unix philosophy and no GUIs which integrate well with the command line. I mean things like GUIs for combining software components which to do useful stuff (cli completion is nice, but why is there no scrollbox to select from? Why no GUI with checkboxes which I can open with right-click when I forgot an obscure option?), good graphical shells which combine a file manager with a CLI shell (there was norton commander), or terminals with graphical features. I remember seeing some interesting projects, but nothing seems to have developed to a state to be really useful. I maybe wrong, I you know such things, let me know.

    This is where I would have hoped to see innovation. Instead we get dumbed down GUIs with fancy annimations.

    1. Re:Unix GUI by smash · · Score: 1

      applescript + automator.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
  83. new inventions = no CLI by Mirar · · Score: 2

    I encounter new libraries and tools without a useful command line interface all the time. It's getting to be irritating.

    Right now I'd like a CLI to open-zwave, but I can't find one. Web interface, sure. Huge bloated tools that does everything for me, sure. No single simple CLI...

    With a CLI it would have been trivial to hook into everything else unix, like cron.

  84. mencoder by Mirar · · Score: 1

    Don't forget mencoder, part of mplayer. It does everything for video and audio streams that imagemagick does for images.

    Worth naming is also sox, that is the same but for (only?) audio. I haven't use that one, so I don't know how good it is.

    And maybe netpbm should be mentioned as a precursor to imagemagick.

    1. Re:mencoder by serviscope_minor · · Score: 1

      sox is kind of the imagemagick equivalent for audio.

      Netpbm is still extant. For many things, I prefer it to imagemagick, since I find it a bit more intuitive. It's also handy knowing about the P2 and P3 netpbm formats since they're the most trivial of image formats and can even be generated from simple commandline tools like awk.

      --
      SJW n. One who posts facts.
  85. This has got to be the stupidest "article" ever. by pigiron · · Score: 2

    You "believe" that you can send mail messages from the command line? JFC, have you ever heard of man pages? And where did you get the impression that grep or egrep are obsolete?

  86. C++ by pentagramrex · · Score: 1

    Best scripting language there is with a few libraries and a debugger. I would shell out to other peograms on occasion.

  87. What's out there by Anonymous Coward · · Score: 0

    To answer OPs question..
    $ ls -F /{,usr/{,pkg/,local/}}{,s}bin/
    /bin/: [* cat* chgrp@ chio* chmod* cp* cpio* csh* date* dd* df* domainname* echo* ed* expr* hostname* kill* ksh* ln* ls* mkdir* mt* mv* pax* ps* pwd* rcmd* rcp* rm* rmdir* rump.dd* sh* sleep* stty* sync* tar* test* /sbin/: amrctl* apmlabel* atactl* badsect* bioctl* brconfig* ccdconfig* cgdconfig* chown* clri* devpubd* dhclient* dhclient-script* dhcpcd* disklabel* dkctl* dkscan_bsdlabel* dmctl* dmesg* dmsetup* drvctl* dump* dump_lfs* fastboot* fasthalt* fdisk* fsck* fsck_ext2fs* fsck_ffs* fsck_lfs* fsck_msdos* fsck_v7fs* fsdb* fsirand* gpt* halt* ifconfig* init* ipf* ipppctl* iscsictl* iscsid* lvm* mbrlabel* mknod* modload* modstat* modunload* mount* mount_ados* mount_cd9660* mount_chfs* mount_efs* mount_ext2fs* mount_fdesc* mount_ffs* mount_filecore* mount_hfs* mount_kernfs* mount_lfs* mount_mfs* mount_msdos* mount_nfs* mount_nilfs* mount_ntfs* mount_null* mount_overlay* mount_portal* mount_procfs* mount_ptyfs* mount_puffs* mount_smbfs* mount_sysvbfs* mount_tmpfs* mount_udf* mount_ufs* mount_umap* mount_union* mount_v7fs* newbtconf* newfs* newfs_ext2fs* newfs_lfs* newfs_msdos* newfs_sysvbfs* newfs_udf* newfs_v7fs* nologin* npfctl* pfctl* pflogd* pfs* ping* ping6* poweroff* pppoectl* raidctl* rcorder* rdump* rdump_lfs* reboot* resize_ffs* resize_lfs* resolvconf* restore* rndctl* route* routed* rrestore* rtsol* rump.cgdconfig* rump.ifconfig* rump.modload* rump.modstat* rump.modunload* rump.ping* rump.raidctl* rump.route* rump.sysctl* savecore* scan_ffs* scan_lfs* scsictl* setkey* shutdown* slattach* svhlabel* swapctl* swapon* sysctl* tbrconfig* ttyflags* tunefs* umount* veriexecctl* wdogctl* wsconsctl* zfs* zpool* /usr/bin/: Mail* addftinfo* addr2line* agrep* apply* apropos* ar* arpaname* as* asa* at* atf-config* atf-report* atf-run* atf-sh* atf-version* atq* atrm* audiocfg* audioctl* audioplay* audiorecord* awk* banner* basename* batch* bc* bdes* biff* bthset* btkey* btpin* bunzip2* bzcat* bzip2* bzip2recover* c++* c++filt* c89* c99* cal* calendar* cap_mkdb* cc* cdplay* checknr* chflags* chfn* chgrp@ chpass* chsh* ci* cksum* cleantags* clear* cmp* co* col* colcrt* colrm* column* comm* compress* config* cpio@ cpp* crontab* crunchgen* crunchide* csplit* ctags* cu* cut* cvs* cvsbug* db* dc* deroff* diff* diff3* dig* dirname* dns-sd* du* egrep* eject* elfedit* env* eqn* error* ex* expand* false* fdformat* fgen* fgrep* file* fincore* find* finger* flex* flex++* flock* fmt* fold* fpr* from* fsplit* fstat* ftp* g++* gcc* gcore* gcov* gcpp* gdb* gdbtui* gdiffmk* genassym* gencat* getcap* getconf* getent* getextattr* getopt* gettext* gkermit* gprof* grep* grn* grodvi* groff* grog* grolbp* grolj4* grops* grotty* groups* gsstool* gunzip* gzcat* gzexe* gzip* head* hesinfo* hexdump* host* hoststat@ hpftodit* hxtool* iasl* iconv* id* ident* indent* indxbib* info* infocmp* infokey* innetgr* install* install-info* install-sid* ipcrm* ipcs* join* jot* kcc* kdestroy* kdump* kgetcred* kinit* klist* kpasswd* krb5-config* ktrace* ktruss* lam* last* lastcomm* ld* ldapadd* ldapcompare* ldapdelete* ldapexop* ldapmodify* ldapmodrdn* ldappasswd* ldapsearch* ldapurl* ldapwhoami* ldd* leave* less* lessecho* lesskey* lex* lint* lkbib* locale* locate* lock* logger* login* logname* look* lookbib* lorder* lp* lpq* lpr* lprm* lsextattr* lua* luac* lzcat* lzma* lzmainfo* m4* machine* mail* mailq@ mailx* make* makeinfo* man* mandoc* md2* md4* md5* menuc* merge* mesg* midiplay* mixerctl* mkcsmapper* mkdep* mkesdb* mkfifo* mklocale* mkstr* mktemp* mkubootimage* more* msgattrib* msgc* msgcat* msgcmp* msgcomm* msgconv* msgen* msgexec* msgfmt* msginit* msgmerge* msgs* msgunfmt* msguniq* nbperf* nbsvtool* neqn* netgroup* netpgp* netpgpkeys* netpgpverify* netstat* newaliases@ newgrp* newsyslog* nfsstat* nice* nl* nm* nohup* nroff* nslookup* nsupdate* objcopy* objdump* od* openssl* page* pagesize* passwd* paste* patch* pathchk* pawd* pcap-config* pfbtops* pgrep* pic* pigz* pkill* pmap* post-grohtml* pr* pre-grohtml* prenice* printenv* printf*

  88. The premise is wrong by radarskiy · · Score: 1

    "GUIs are walled gardens in that features available in one piece of software is not available to other pieces of software. "

    In journalism this is known as "telling a question". It looks like you're asking something when really you are asserting a premise. The fun part is that you get away without having to show that your premise is correct.

  89. Just Wrong by RedLeg · · Score: 1

    Less useful but still useful are command shells.

    Really?

    You obviously do not get it if you do not understand the Jedi Power of a person who has mastered the shell. Pick a shell. When you think you have mastered the shell, experiment with other shells. Hell, change your shell to perl, I know a couple of perl junkies who run that way.

    Sometime when you are bored, and have more that three brain cells on shift, from the command line (that would be a shell prompt) execute "man init" on your favorite Unix, and read the page. Then read the init scripts. {sarcasm}no, the shell is not useful{/sarcasm}

    In a Unix Xwindows environment (or in MacOS X for that matter), the GUI is a tool, a nice place for multiple graphical proggies to play together, and an easy way to have multiple terminals open and visible at once. If you are an absolute luddite, get yourself an old VT101 terminal, learn how to plumb in a serial terminal to your machine, and explore the wonders of tmux.

    Happy new year

    -Red

  90. SDR by fyngyrz · · Score: 1

    My (free) SDR [Software Defined Radio] software has, rather than a command line interface (since it isn't invoke to process, but invoke and continue to run to process), a network interface. Open a port, ask it for status and/or data, send it commands, etc.

    I've interfaced it with other SDRs, remotely tunable antennas, and full on transceivers via this network interface. Commands are essentially text, other than you send them through the port.

    Another thing is that regardless of which platform the SDR software is running on, you can talk to it from any other platform, because it's just a network connection. It's easily driven from any scripting language with network facilities, for instance Python interfacing is a doddle.

    I love the idea of command line tools, because those are things I can use to leverage this kind of interface. Talk to a mapping application? Just feed the guy's callsign to a ham radio db, get the coordinates back, feed them to the mapping app, bingo, map. Etc.

    --
    I've fallen off your lawn, and I can't get up.
  91. wtf? by Hognoxious · · Score: 1

    Less useful but still useful are command shells.

    Leaving aside the hideous style, that's bullshit. Without a command shell you wouldn't be able to run anything, let alone chain programs together, automate actions etc.

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  92. some more candidates by Anonymous Coward · · Score: 0

    less: read only, open a text file and use VI commands to move around, with no fear of fucking up.
    tail - f: for watching logs while troubleshooting an issue
    ipcalc: quick IP reference guide
    rinitd: to redirect IP traffic from one interface to another inteface
    scp: move data anywhere
    ls -lrt: to see the most recent change in a directory at the bottom of a list
    ffmpeg, lame, sox: for mucking with audio

  93. crippled joke? by Anonymous Coward · · Score: 0

    While it's true it took MS 2 decades to start seriously investing in command-line, they have caught up very fast. In a lot of ways it's superior to bash, being object oriented and having so many 3rd parties creating powershell modules to manage their products.

    It's a super different world for a windows admin that does "get it". I rarely use GUIs.

  94. Are you declaring a citation fight? by tepples · · Score: 1

    The Wikipedia article cites four sources. If you're willing to provide some citations for who may "claim to be a programmer", I'll take a look at them.

  95. ERP defined by tepples · · Score: 1

    Please see Enterprise resource planning on Wikipedia.

  96. Command-lines beyond the shell by snadrus · · Score: 1

    Command-line interpreters help save time and have became my favorite way to jump into using those languages, but there's more than the shell.
    Python is a great one.
    Javascript in Chrome has a command-line where you can try out things.
    Unsurprisingly, despite both of these languages having issues, they are highly popular.

    I hear that there's a chrome with a Dash interpreter built-in. If it includes inline editing, then I'd bet it will do well.

    --
    Science & open-source build trust from peer review. Learn systems you can trust.
  97. What Operating System? by herbierobinson · · Score: 1

    Every operating system I know of (except maybe BeOS) has at least one command line interface. Many operating systems have more than one.

    For example, the Stratus VOS operating system supports this command line interface:

    http://stratadoc.stratus.com/vos/17.2.0/r089-06/wwhelp/wwhimpl/js/html/wwhelp.htm?context=r089-06&file=ch1r089-06.html

    This command line interface was designed around 1980 and attempts to be more user friendly by using recognizable command names and has both lineal and form oriented methods for specifying command arguments.

    The VOS operating system also supports bash...

    --
    An engineer who ran for Congress. http://herbrobinson.us