begin  quoting Todd Walton as of Sat, Oct 01, 2005 at 10:08:43PM +0000:
> We all have our CLI amor.  That two- or three-letter command that
> fiddles our heartstrings.  'mv' is pedestrian, but 'mmv' is *so* cool.

% which mmv
mmv: Command not found.
% bash
bash-2.05a$ which mmv
bash-2.05a$

Hm?

>  'cp' can lug bits around all day to no applause, but 'cpio' will
> excite even the most jaded of command line linguists.  "How perfect!"
> you exclaim.  So what's your poison?  What turns you on?  What little
> known command performs just the right function?
 
I'm partial to "tail -f", actually. Or "alias", come to think of it.

> In this regard, I want to know these things:
> 
> 1) What's the best way to alias ls?  I currently have "alias ll="ls
> -l"" in my .bash_aliases, but it displays more information than I'd
> like.  Actually, just the "number of links to the file" could go.  I
> never use that info.  What "ls" symlinks or aliases do you use?

Hm... 

maui% grep ls .aliases
alias   ls      'ls --color=auto -F'
alias   ll      'ls -l'
alias   la      'ls -a'
maui%

straumli% grep ls .aliases
#alias ls "ls -F"
alias ls "ls-F"
alias ll "ls -l"
alias la "ls -la"
alias lj "ls *.java"
straumli%

Poking at various machines, I see that I have a few interesting aliases:

alias   /       'cd ..'

(Because /\r is just two keystrokes, versus six.)

alias  fone     'echo \!* | tr "[a-zA-Z]" 
"[2223334445556667777888999922233344455566677778889999]"'

(You never know when you're going to want to see what your phone number
spells out.)

alias swapd "pushd +1"

(When you have a stack, it's nice to have a swap function.)

alias whichpkg "pkgchk -l -p \!*"

(A solaris-specific way to ask "who owns this?")

alias jr "java \!*"
alias jc "javac \!*"

(When in a compile-run-test cycle with (often complicated) command and
run lines, it's nice to say "do that again" with !jc and !jr versus
history numbers, and without having to bother with writing a script or
adding to the build system for what will probably be a one-day only
standalone compile/run cycle.)
 
[snip]
> 4) What the heck is 'lesspipe' for?
 
Manpages are your friend.

> 5) Does 'tee' have a use?

Yes.

-Stewart "I also have aliases that modify environment variables." Stremler


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to