<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 24, 2015 at 6:15 PM, Sampsa Laine <span dir="ltr"><<a href="mailto:sampsa@mac.com" target="_blank">sampsa@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hy they put binaries in /etc, I always thought that was a config directory, now the name makes sense: /etc = random stuff goes here since we don't have /sbin yet :P</blockquote></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​/etc goes back to very early Unix (at least 5th edition).  Ken put things that only an admin would need in there.   At it was in the PATH of root typically.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">/sbin is >>static<< bin not systems bin and it's very late in Unix development (i.e. it came from the Summit guys in the mid 1980s, not research).  It was created when unix started to support shared libraries it needed to split bin in the stuff needed before sharing and statically linked (typically systems stuff)​ vs. stuff that could be shipped with a shared library.  Difference between ed and ex/vi. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Shared libs came very late to UNIX.   To give Summit (and Columbus) credit, it was definitely there by system V and I don't remember it in PWB 3.0 (aka  System 3.0 when it got "branded" by Summit).  PWB 4.0 never left the Bell System it may have had it but I've forgotten and I do not have an PWB 4.0 docs.  By the time Summit picked up the other BTL changes you got the System V.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Also /bin <-> /usr/bin split was left over from the RK05 (2.5Mbyte) disk and also very early in Unix - certainly was in Research 6th, and I've forgotten if it was in 5th.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">So in the old days of Research (and later BSD) you had:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">   /bin <-- mortal user programs that would exist before anything was mounted (ed, ls, kept to a minimum..)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">   /etc <-- binaries and configuration files and script - used for booting, system maintenance and like (mount, umount, the password file ,,)  </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">   /usr/bin <-- mortal programs but might not need until after running multi-user (init had only 2 states -- single user or multi-user) all the other programs from section 1 that were not in /bin</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">This allowed you to balance the space needed.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">/lib and /usr/lib has similar beginnings.   /lib contain libc.a, the compiler itself, cpp front end and not much else.   Everything was put in /usr/bin</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Funny, to this day I still in terms of /bin and /lib being very small and only limited in what is there.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">In fact, their was an early attempt at what we now called the union file system to try to bring directories like these be "visible" as a single directory in one the UNIX - again IIRC that the Columbus guys.  Berkeley later added it in BSD 4.4 although it was buggy for a long time and really did not come into being until the VFS layer/file system switch comes about in the late 1980s.</div><br><br></div></div>