[FC3] where is which??

Matthew Miller mattdm at mattdm.org
Mon Nov 29 22:32:14 UTC 2004


On Mon, Nov 29, 2004 at 04:08:30PM -0600, Aleksandar Milivojevic wrote:
> Yeah.  But unless you are using (t)csh, it is better to use type, eh.

Eh, indeed.

> which is hashed (/usr/bin/which)
> $ alias ll="ls -l"
> $ type ll
> ll is aliased to `ls -l'
> $ which ll
> which: no ll in (/usr/bin:/bin)


If you're using the standalone "which" package in FC (or even older RHL),
though, you get:

$ which ll
alias ll='ls -l --color=tty'
        /bin/ls

The best of both worlds -- shows you what the alias is, *and* which binary
is going to get called.


-- 
Matthew Miller           mattdm at mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>




More information about the users mailing list