[Info-vax] Foreign commands ... newbie question
hb
becker.avd at gmail.com
Tue Oct 18 04:19:46 EDT 2011
On Oct 18, 2:35 am, "John Reagan" <johnrrea... at earthlink.net> wrote:
> Well, not the bash on my ubuntu 11.10 system.
>
> $ echo $SHELL
> /bin/bash
> $ alias ll
> alias ll='ls -alF'
> $ which ll
> $
>
> John
On some distributions which is an alias itself. That's the case on my
system - Debian based.
$ alias which
alias which='type -path'
The -path restricts type to only print the path for files. Type is a
builtin which it shows:
$ type type
type is a shell builtin
and then:
$ type which
which is aliased to `type -path'
$ type ls
ls is aliased to `ls --color=auto'
and -P forces a PATH search:
$ type -P ls
/bin/ls
More information about the Info-vax
mailing list