On 22.05.2010 10:35, Nicolas Richard wrote:
>> Find out what command is actually executed when you type 'ls'. Do a
>> 'which ls' or 'alias ls' if which is not installed.
> 
> I think 'which' will not tell you if there is an alias (maybe it depends
> on version used), so 'alias' might be a better first choice.

Maybe, but on my BLFS-System, which does exactly that:

hermes~> which ls
alias ls='ls -F --color=auto --show-control-chars'
        /bin/ls

> Also on bash, the builtin "type" seems to do the job of 'alias' and
> 'which' at the same time.

hermes~> type ls
ls is aliased to `ls -F --color=auto --show-control-chars'

Nope. It won't tell me about the executable /bin/ls.

Lars



-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to