Bo Andresen wrote:.... Rohit replies -- Thanks, both of you, for your response. I am re-emerging coreutils, just in case. Done. The commands are below - and in summary here is what happens. - PATH is shown. My own .bin directory has two mp3 ripping scripts. That is all. "/usr/bin" comes before "/bin" in PATH - "/bin/ln" is a proper executable. "/usr/bin/ln" and "/usr/bin/mc" are both symlinks to "/bin/ln" [Not good] - Removed mc from "/usr/bin" and "/usr/bin/ln" disappears as well [Not good] Then "which ln" shoes "/bin/ln" and "which mc" shows no mc. - Creation of symlink /usr/bin/ln automatically creates symlink /usr/bin/mc - pointing to /bin/ln [thus affecting my midnight commander]. Both symlinks have same inode number on my filesystem. Also note that I do not have another definition of ln as an alias.
This may be a filesystem inconsistency. I would consider an fsck for reiserfs and may be a rebuiltree. What do you say? Please help. Thanks, Rohit Ps - Commands follow. ==================================== Please look at the following. [EMAIL PROTECTED] ~ $ echo $PATH /home/rohit/.bin:/usr/games/bin:/usr/kde/3.5/bin:/home/rohit/.bin:/usr/games/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/bin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/kde/3.4/bin:/usr/games/bin:/opt/limewire:/home/oracle/product/10.1.0.3/bin [EMAIL PROTECTED] ~ $ cd /bin [EMAIL PROTECTED] /bin $ md5sum ln 95d3db99e446dfe4cf95abbd04b60c75 ln [EMAIL PROTECTED] /bin $ ls -l ln -rwxr-xr-x 1 root root 27756 Apr 14 12:39 ln [EMAIL PROTECTED] /bin $ cd /usr/bin [EMAIL PROTECTED] /usr/bin $ md5sum ln 95d3db99e446dfe4cf95abbd04b60c75 ln [EMAIL PROTECTED] /usr/bin $ ls -l ln lrwxrwxrwx 1 root root 7 Apr 14 12:39 ln -> /bin/ln [EMAIL PROTECTED] /usr/bin $ md5sum mc 95d3db99e446dfe4cf95abbd04b60c75 mc [EMAIL PROTECTED] /usr/bin $ ls -l mc lrwxrwxrwx 1 root root 7 Apr 14 12:39 mc -> /bin/ln [EMAIL PROTECTED] /usr/bin $ [EMAIL PROTECTED] /usr/bin $ file mc mc: symbolic link to `/bin/ln' [EMAIL PROTECTED] /usr/bin $ rm mc rm: remove symbolic link `mc'? y rm: cannot remove `mc': Permission denied [EMAIL PROTECTED] /usr/bin $ sudo rm mc [EMAIL PROTECTED] /usr/bin $ls -l mc ls: mc: No such file or directory [EMAIL PROTECTED] /usr/bin $ ls -l ln ls: ln: No such file or directory [EMAIL PROTECTED] /usr/bin $ which ln /bin/ln [EMAIL PROTECTED] /usr/bin $ which mc which: no mc in (/home/rohit/.bin:/usr/games/bin:/usr/kde/3.5/bin:/home/rohit/.bin:/usr/games/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/bin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/kde/3.4/bin:/usr/games/bin:/opt/limewire:/home/oracle/product/10.1.0.3/bin) [EMAIL PROTECTED] /usr/bin $ sudo /bin/ln -s /bin/ln ./ln [EMAIL PROTECTED] /usr/bin $ sudo /bin/ln -s /bin/ln ./ln [EMAIL PROTECTED] /usr/bin $ which mc /usr/bin/mc [EMAIL PROTECTED] /usr/bin $ which ln /usr/bin/ln [EMAIL PROTECTED] /usr/bin $ ls -i ln mc 300 ln 300 mc [EMAIL PROTECTED] /usr/bin $ ls -li ln mc 300 lrwxrwxrwx 1 root root 7 Apr 14 12:48 ln -> /bin/ln 300 lrwxrwxrwx 1 root root 7 Apr 14 12:48 mc -> /bin/ln [EMAIL PROTECTED] /usr/bin $ ls -li /bin/ln 34560 -rwxr-xr-x 1 root root 27756 Apr 14 12:39 /bin/ln [EMAIL PROTECTED] ~ $ alias ln bash: alias: ln: not found -- gentoo-user@gentoo.org mailing list