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

Re: why are there /bin and /usr/bin...

Bruce Sass <bmsass@shaw.ca> writes:

> I was curious so...
> $ for f in /bin/* /sbin/*; do if [ "`file $f | grep ELF`" != "" ] ; then 
> if [ "`ldd $f | grep /usr`" != "" ] ; then echo `dpkg -S $f`; ldd $f; 
> fi; fi; done
> iputils-ping: /bin/ping6
>         linux-gate.so.1 =>  (0xb770d000)
>         libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0x472dc000)
>         libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 
> (0x4882b000)

Note that there is /lib/libcrypt* (at least here). This is just the more
optimized flavour the ld.so picks when the cpu supports it. But ping6
will run fine with the basic library if /usr is missing.

A better test might be to do this without /usr mounted.


Reply to: