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

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

 



bruce wrote:
here are the results...

[root@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@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@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...

This is very strange. Try these: $ type mysql $ file /usr/bin/mysql $ rpm -q mysql

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

Beware of making such offers to people you don't know - you never know if they may be incompetent or even malicious.


Paul.


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

  Powered by Linux