3 ms·
Or user-friendly for that matter. I think it's pointless to keep using utilities with titles like man, cp, ls, fsck, grep etc., which are are extremely unintuit
by anigbrowl 13y ago
Or user-friendly for that matter. I think it's pointless to keep using utilities with titles like man, cp, ls, fsck, grep etc., which are are extremely unintuitive to most people. We're not using 300 bps dumb terminals any more, but the Unix command line remains about as friendly as a leopard. I hated this ~20 years ago when I first learned Linux, but it was the price I had to pay to set up my own domain and hey, a free Unix clone. But two decades later, it's still pretty unfriendly, and a there's still a lot of command-line snobbery that seems dedicated to preserving this unintentional but obsolete obscurantism, like thoroughbred horse breeders who refuse to acknowledge the market's preference for cars and bicycles.
- zanny 13y agoI agree with this. A lot of the limitations of 1980s unix no longer exist, yet we still constrain our terminals to obtuse nomenclature and bad syntax like we only have 80 characters before the terminal auto-returns.
- kragniz 13y agoI believe we're talking about kernel development here, not GNU utilities. However, what naming scheme would you prefer? The command line is fairly unintuitive as it is. I would argue it is preferable to have short, memorable and fast to type names.
- nsmartt 13y agoTo be fair, it's entirely possible to create aliases with more intuitive names and dump a "you can type ____ for short" message on each run.
- jlgreco 13y agoWhich leads me to suspect that if there were a demand for "a big file to source in your bashrc to alias 'cp' to 'copy'", it would exist. It is not exactly a difficult thing to do, but nobody actually cares enough to do it (probably because it is not actually a problem).
- nsmartt 13y agoI suspect people get used to cp, mv, etc, and then aren't interested in longer versions anymore. I'd still say it'd be a good default.
- anigbrowl 13y agoIt is about kernel development, but I think this small issue I've pointed to is symptomatic of the general problem. These names are short, but not memorable or easily discoverable.
- tptacek 13y agoNot-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.
- anigbrowl 13y agoI 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.'
- glurgh 13y agoThe '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.
- dylangs1030 13y agoI 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?