News for hackers. Stuff that matters.
Re:Lazy Linux: essential tricks for admins by palish on Friday January 16, 2009 @07:57AM (#436538)
How about "listopenfiles" and "netfind"? And "list" instead of "ls", and "delete" instead of "rm", and... et cetera.

"Global Regular Expression Print" is a terrible name on its own, too.

Re:Lazy Linux: essential tricks for admins by skorgu on Friday January 16, 2009 @08:32AM (#436574)
See the thing is that if you're knee deep in an unfamiliar system trying to fix it you type "ls" about a dozen times a minute. Adding two unnecessary keystrokes (doubling the length!) not only adds up it makes typos more common.

There are some nice conventions though, once you know grep there's egrep, ngrep, etc. Then there's the -stat family, prstat, iostat, vmstat, mpstat, etc.

Grep is its own special case, I'm not going to argue that it's a good name a priori but it does have the benefit of being completely unique not to mention far too entrenched to change now. Not to mention that it's "burp" in Yiddish.

Unix is difficult to pick up but once your brain operates in that special warped way things do make sense by extension.

Re:Lazy Linux: essential tricks for admins by tome on Friday January 16, 2009 @08:43AM (#436583)
palish has a point to the extent that lsof is so infrequently used that it would do no harm to give it a more descriptive name.

Nonetheless, I entirely agree with you about ls, and about sticking to the conventions that have developed around unix.

Re:Lazy Linux: essential tricks for admins by 11ren on Friday January 16, 2009 @09:19AM (#436620)
There's a tribal aspect, too; not to mention jargon as a barrier to entry. And what professional wants to forgo hard-won knowledge?

That said, I kind of like the weird names, esp grep. (Wasn't that in Stranger in a Strange Land or something?)

But I do object to inconsistent options. One example is: mkdir -p a/b/c This will make all three nested directories, if needed; but there is no equivalent: mv -p x a/b/c/y There also isn't: cp -p a/b/c [1]. You have to create the nested destination directories (a/b/c) first.

[1] cp has a -p option, but with a different meaning...

BTW: It would be nice if HackerNews had the `` markdown of Reddit for inline code. There's been a bit of code sharing recently, and I like that in a "hacker" site.

Re:Lazy Linux: essential tricks for admins by d0mine on Friday January 16, 2009 @09:46PM (#437678)
Inconsistent options are like irregular verbs in English (the most frequently used verbs are both ancient and irregular as a rule).
Re:Lazy Linux: essential tricks for admins by palish on Friday January 16, 2009 @09:42AM (#436651)
For code, use two spaces at the start of the line.

  like this
Re:Lazy Linux: essential tricks for admins by 11ren on Friday January 16, 2009 @10:30AM (#436721)
thanks, I know. I referred to inline code.
Re:Lazy Linux: essential tricks for admins by gaius on Friday January 16, 2009 @09:54AM (#436667)
Grok, you're thinking of.
Re:Lazy Linux: essential tricks for admins by 11ren on Saturday January 17, 2009 @06:10AM (#437998)
yes! thanks,
Re:Lazy Linux: essential tricks for admins by grouchyOldGuy on Friday January 16, 2009 @08:54AM (#436597)
If that really bothers you, just alias those commands.

alias listopenfiles=ls

alias netfind=ngrep

...and so forth. I've done that to add the DOS "cls" command to clear my terminal screen. Also, I'm a Cisco admin, so I have aliased "en" to "su", and the reverse on Cisco switches and routers. Yes, Cisco also has the alias command in IOS.

Re:Lazy Linux: essential tricks for admins by davidw on Friday January 16, 2009 @09:12AM (#436616)
If unix were being designed from the ground up, today, user friendly commands, with aliases to power user abbreviations might make sense. It was, however, created some 30+ years ago.
Re:Lazy Linux: essential tricks for admins by 11ren on Saturday January 17, 2009 @06:15AM (#438003)
yeah, if you don't like it, change it (you could even put them on a USB stick or a server somewhere so you could install them on a new machine quickly). That one could change it honestly didn't occur to me til you said it.

There's the favourite DOS->unix:

  alias cd..="cd .."
Re:Lazy Linux: essential tricks for admins by davidw on Friday January 16, 2009 @09:03AM (#436610)
If you want user friendly, use the GUI. The commands are meant to be quick to write for frequent users, especially in the days when shells didn't do command completion.