Re: [FC3] where is which??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux