basic question -linux path..(/usr/bin, /usr/local/bin)

bruce bedouglas at earthlink.net
Tue Mar 29 15:16:27 UTC 2005


here are the results...

[root at lserver2 /]# ls -l /usr/kerberos/sbin/mysql /usr/kerberos/bin/mysql
/usr/local/sbin/mysql /usr/local/bin/mysql /sbin/mysql /bin/mysql
/usr/sbin/mysql /usr/bin/mysql
ls: /usr/kerberos/sbin/mysql: No such file or directory
ls: /usr/kerberos/bin/mysql: No such file or directory
ls: /usr/local/sbin/mysql: No such file or directory
ls: /usr/local/bin/mysql: No such file or directory
ls: /sbin/mysql: No such file or directory
ls: /bin/mysql: No such file or directory
ls: /usr/sbin/mysql: No such file or directory
-rwxr-xr-x  1 root root 54352 Oct 12 12:44 /usr/bin/mysql
[root at lserver2 /]# alias
alias cp='cp -i'
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
alias mv='mv -i'
alias rm='rm -i'
alias vi='vim'
alias which='alias |
/usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
[root at lserver2 /]# mysql
-bash: /usr/local/bin/mysql: No such file or directory

as you can see, it appears that '/usr/bin/mysql' should be picked up...
when i do 'which mysql' it points to the '/usr/bin/mysql'

when i run 'mysql' the system tries to go to the '/usr/local/bin/mysql'

ideas/suggestions...

i could even let you into the system if you thought it would help!!

-bruce




More information about the fedora-list mailing list