LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   a weird issue about which (https://www.linuxquestions.org/questions/red-hat-31/a-weird-issue-about-which-317205/)

jiawj 04-26-2005 03:21 AM

a weird issue about which
 
I run command which , and output
Quote:

/bin/lrz
/bin/lrz
why the message be displayed twice?

and ......


if I run /bin/lrz, output
Quote:

bash:/bin/lrz: No such file or directory
but, I find
Quote:

file /bin/lrz:
/bin/lrz: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped
I run updatedb, but the issue still stay on.

pls give me some idea, thx

abisko00 04-26-2005 04:03 AM

On my system, 'which' is the alias of 'type -p'
Code:

alias which='type -p'
Maybe the alias is defined twice on your system? Type 'alias' to list all.

Don't know anything about /bin/lsz...

jiawj 04-26-2005 09:06 AM

thx for reply
 
The setting for alias which is alias which :
Quote:

alias which='type -path'
:confused: :confused:

why I run /bin/lrz but output:
Quote:

bash:/bin/lrz: No such file or directory
file /bin/lrz
Quote:

/bin/lrz: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped
ls -lF /bin/lrz
Quote:

-r-xr-xr-x 3 root wheel 71872 Apr 28 2004 /bin/lrz*
any idea ?


All times are GMT -5. The time now is 11:53 AM.