1 |
Bo Andresen wrote:.... |
2 |
Rohit replies -- |
3 |
|
4 |
Thanks, both of you, for your response. I am re-emerging coreutils, just |
5 |
in case. Done. |
6 |
The commands are below - and in summary here is what happens. |
7 |
- PATH is shown. My own .bin directory has two mp3 ripping scripts. That |
8 |
is all. "/usr/bin" comes before "/bin" in PATH |
9 |
- "/bin/ln" is a proper executable. "/usr/bin/ln" and "/usr/bin/mc" are |
10 |
both symlinks to "/bin/ln" [Not good] |
11 |
- Removed mc from "/usr/bin" and "/usr/bin/ln" disappears as well [Not |
12 |
good] Then "which ln" shoes "/bin/ln" and "which mc" shows no mc. |
13 |
- Creation of symlink /usr/bin/ln automatically creates symlink |
14 |
/usr/bin/mc - pointing to /bin/ln [thus affecting my midnight |
15 |
commander]. Both symlinks have same inode number on my filesystem. Also |
16 |
note that I do not have another definition of ln as an alias. |
17 |
|
18 |
This may be a filesystem inconsistency. I would consider an fsck for |
19 |
reiserfs and may be a rebuiltree. What do you say? |
20 |
|
21 |
Please help. |
22 |
Thanks, |
23 |
Rohit |
24 |
Ps - Commands follow. |
25 |
==================================== |
26 |
Please look at the following. |
27 |
|
28 |
rohit@Force ~ $ echo $PATH |
29 |
/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 |
30 |
rohit@Force ~ $ cd /bin |
31 |
rohit@Force /bin $ md5sum ln |
32 |
95d3db99e446dfe4cf95abbd04b60c75 ln |
33 |
rohit@Force /bin $ ls -l ln |
34 |
-rwxr-xr-x 1 root root 27756 Apr 14 12:39 ln |
35 |
rohit@Force /bin $ cd /usr/bin |
36 |
rohit@Force /usr/bin $ md5sum ln |
37 |
95d3db99e446dfe4cf95abbd04b60c75 ln |
38 |
rohit@Force /usr/bin $ ls -l ln |
39 |
lrwxrwxrwx 1 root root 7 Apr 14 12:39 ln -> /bin/ln |
40 |
rohit@Force /usr/bin $ md5sum mc |
41 |
95d3db99e446dfe4cf95abbd04b60c75 mc |
42 |
rohit@Force /usr/bin $ ls -l mc |
43 |
lrwxrwxrwx 1 root root 7 Apr 14 12:39 mc -> /bin/ln |
44 |
rohit@Force /usr/bin $ |
45 |
rohit@Force /usr/bin $ file mc |
46 |
mc: symbolic link to `/bin/ln' |
47 |
rohit@Force /usr/bin $ rm mc |
48 |
rm: remove symbolic link `mc'? y |
49 |
rm: cannot remove `mc': Permission denied |
50 |
rohit@Force /usr/bin $ sudo rm mc |
51 |
rohit@Force /usr/bin $ls -l mc |
52 |
ls: mc: No such file or directory |
53 |
rohit@Force /usr/bin $ ls -l ln |
54 |
ls: ln: No such file or directory |
55 |
rohit@Force /usr/bin $ which ln |
56 |
/bin/ln |
57 |
rohit@Force /usr/bin $ which mc |
58 |
which: no mc in |
59 |
(/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) |
60 |
rohit@Force /usr/bin $ sudo /bin/ln -s /bin/ln ./ln |
61 |
rohit@Force /usr/bin $ sudo /bin/ln -s /bin/ln ./ln |
62 |
rohit@Force /usr/bin $ which mc |
63 |
/usr/bin/mc |
64 |
rohit@Force /usr/bin $ which ln |
65 |
/usr/bin/ln |
66 |
rohit@Force /usr/bin $ ls -i ln mc |
67 |
300 ln 300 mc |
68 |
rohit@Force /usr/bin $ ls -li ln mc |
69 |
300 lrwxrwxrwx 1 root root 7 Apr 14 12:48 ln -> /bin/ln |
70 |
300 lrwxrwxrwx 1 root root 7 Apr 14 12:48 mc -> /bin/ln |
71 |
rohit@Force /usr/bin $ ls -li /bin/ln |
72 |
34560 -rwxr-xr-x 1 root root 27756 Apr 14 12:39 /bin/ln |
73 |
rohit@Force ~ $ alias ln |
74 |
bash: alias: ln: not found |
75 |
|
76 |
-- |
77 |
gentoo-user@g.o mailing list |