News for hackers. Stuff that matters.
Re:Graying Linux developers look for new blood by tptacek on Thursday August 29, 2013 @10:00PM (#6299812)
Not-so-compelling examples of Unix command line idioms that are needlessly baroque: cp, man, ls, grep.

Great examples of Unix command line idioms that are needlessly baroque: find, ifconfig, route, netstat, lsof.

Re:Graying Linux developers look for new blood by anigbrowl on Friday August 30, 2013 @12:25AM (#6300256)
I agree with you about find, but I was thinking of the utility itself rather than the command-line usage. 'find' is at least descriptive of what the command does. 'cp' is somewhat like 'copy' but 'man' should be called 'help', 'ls' should be called 'list' and 'grep' would be more obvious with any name, except maybe 'brian.'
Re:Graying Linux developers look for new blood by glurgh on Friday August 30, 2013 @02:25AM (#6300500)
The 'unfriendliness' doesn't come from the names, it's that for it to make sense you have to absorb some conceptual framework of how the thing works. People adapt to odd names quite easily, just as you have, once they get used to them - both syntactically (ls doesn't actually stand for 'list') and semantically (find doesn't really find, maybe 'ftraverse' for filtered traverse).

To use the unix command line you have to get your head around a bunch of key concepts, say, globbing, i/o redirection, pipes, etc. After that, whether it's 'grep' or 'brian' isn't going to get in your way much.

This sort of jargon is pretty typical, though, and I think it's a fairly small barrier. Want to learn some LISPy language? Here come the entirely meaningless car, cdr, cons, s-expression. Functional processing of sequences? Well you can map, you can reduce, you can zip, you can fold. Building your first RoR app? Don't forget to railtie your merb to the phusion gem of the sinatra rack, but not before you've raked your capistrano with a cucumber. You can probably safely rename every JS framework to an MMM (Marklar, Marklar, Marklar) framework given the liberties they take with the meaning of the things M, V and C stand for.

You can give, say, 'cat' or 'tee' magically and perfectly clear names but than in itself won't make anyone understand things like 'unix utilities have one input and two output streams' any better.

Re:Graying Linux developers look for new blood by dylangs1030 on Friday August 30, 2013 @04:52PM (#6304138)
I actually love grep. I'm not sure why, but it's taken such a hold in my brain that I intuitively associate searching for something specific with the word "grep."

I agree with man. It makes sense technically because of "manual"...except that "man" is its own word. Every time I type man, I feel like I'm typing the gender, and it's weird.

cp bothers me because they shortened a four-letter word, the same with ls and list. Despite the original terminal constraints, they couldn't spare two characters?

Re:Graying Linux developers look for new blood by dragonwriter on Friday August 30, 2013 @05:18PM (#6304273)
> cp bothers me because they shortened a four-letter word, the same with ls and list. Despite the original terminal constraints, they couldn't spare two characters?

Really, I think that with an OS designed in the late 1960s, brutally reducing commonly-used commands to the shortest recognizable form was a very good idea.

Storage capacity (both RAM and persistent), processor speeds, and bandwidth for internal and network transfers were all many orders of magnitude less than today's systems. Extra bytes had a real cost.

Re:Graying Linux developers look for new blood by glurgh on Friday August 30, 2013 @07:54PM (#6304900)
I get to self-pedantipoint myself here, 'ls' does not stand for the Multics 'list segments' as I thought, it didn't mean 'list segments' in Multics either, that's just folk etymology that's made it into Wikipedia (I just took it out).

http://alt.folklore.computers.narkive.com/7q9reknM/1950s-at-...

Author of that post is Tom Van Vleck, who ought to know.

http://en.wikipedia.org/wiki/Tom_Van_Vleck