Mailinglist Archive: opensuse (3318 mails)

< Previous Next >
Re: [opensuse] odd /usr/bin thing
  • From: Bill Anderson <bill@xxxxxxxxxxxxxxxxx>
  • Date: Tue, 08 Jan 2008 06:35:42 -0700
  • Message-id: <47837C2E.7030405@xxxxxxxxxxxxxxxxx>


Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



The Monday 2008-01-07 at 15:09 -0500, Aaron Kulkis wrote:

Bill Anderson wrote:

Bourne shell compatibility. You might also note that under Linux it is
/usr/bin/sh, /usr/bin/ksh, and /bin/bash.

No, not really:

cer@nimrodel:~> l /bin/sh /usr/bin/sh
lrwxrwxrwx 1 root root 4 2007-11-03 02:13 /bin/sh -> bash*
lrwxrwxrwx 1 root root 9 2007-11-03 02:13 /usr/bin/sh -> /bin/bash*

cer@nimrodel:~> l /bin/ksh /usr/bin/ksh
lrwxrwxrwx 1 root root 16 2007-11-03 16:07 /bin/ksh -> /lib/ast/bin/ksh*
lrwxrwxrwx 1 root root 16 2007-11-03 16:07 /usr/bin/ksh -> /lib/ast/bin/ksh*

cer@nimrodel:~> l /bin/bash /usr/bin/bash
ls: cannot access /usr/bin/bash: No such file or directory
- -rwxr-xr-x 1 root root 604040 2007-09-22 00:16 /bin/bash*

- -- Cheers,
Carlos E. R.
My original comment about /bin being linked to /usr/bin applied only to Solaris, AIX, and HPUX. Yet, all the examples of why I am wrong are from Linux. If you were on a Unix system, there would not be a /lib/ast/ksh, as KornShell is in /usr/bin. The other difference you will notice is that AIX now has bsh for Bourne Shell. Those who use Unix also notice the emphasis on hard links in Unix versus symbolic links in Linux.

Bill Anderson
WW7BA
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups