The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Understanding the /bin, /sbin, /usr/bin, /usr/sbin Split
@ 2012-02-05  8:38 Hendrik Jan Thomassen
  2012-02-05 10:13 ` Jaap Akkerhuis
  2012-02-05 17:15 ` Warner Losh
  0 siblings, 2 replies; 34+ messages in thread
From: Hendrik Jan Thomassen @ 2012-02-05  8:38 UTC (permalink / raw)



If I recall well the /sbin directory first appeared in HP/UX,
and the name stood for 'Static binaries'. Its reason for existence
was that with the introduction of shared libraries the file with
the C-library had become a single point of failure. Therefore this
sbin was introduced to hold Statically linked executables for the
most important commands needed to fix a broken system (sh, ls, mv,
cp, find, tar, fsck etcetera). With this directory earlier than
/bin in his PATH the administrator could at least restore a working
libc.so file. And, while we are at it, the name 'executable' was
not commonly used: they were called 'binaries' (except in IBM
mainframe terminology were they were called 'load modules').
Only much later the habit of /sbin = System binaries emerged.

An important reason to split /bin vs. /usr/bin and /lib vs. /usr/lib
etc. was that the root file system had to be kept small. The fsck
program, while at work, builds tables. If possible, they stay in
memory, but if memory runs out fsck writes them to disk. However,
you don't want them to be written to an untrusted/unchecked file
system, and certainly not to the file system currently under repair.
Since the root file system has to be checked before the others, it
had to be small enough so ensure that fsck could run memory-based
only. Therefore: the /bin, /lib and other root-fs based directories
held the minimal stuff needed for booting and for repairs/restores,
while all the rest had to go into the "overflow" directories /usr/bin,
/usr/lib etc (and, obviously, /usr was a separately mounted partition).
Remember: those were the days that every reboot included a full
fsck on all your partitions. 
-- 
Hendrik-Jan Thomassen     <hjt at ATComputing.nl>
AT Computing
6546 BE  Nijmegen NL      Fax +31 24 352 72 92
info at atcomputing.nl       www.atcomputing.nl
'If you think education is expensive, then try ignorance.'




^ permalink raw reply	[flat|nested] 34+ messages in thread
* [TUHS] Understanding the /bin, /sbin, /usr/bin, /usr/sbin Split
@ 2012-02-04 19:34 Pepe
  2012-02-04 21:05 ` Lyndon Nerenberg
  0 siblings, 1 reply; 34+ messages in thread
From: Pepe @ 2012-02-04 19:34 UTC (permalink / raw)


"Jose R. Valverde" <jrvalverde at cnb.csic.es> said:

> Beyond that, the original articles and comments complained also about
> directory naming (/bin /etc /lib) as "unintuitive". I fail to
> understand in 
> what way is it easier for someone new to a computer to learn a "/bin
> /etc /var /lib" alien terminology and what it means, than to learn
> "System Config Libraries 
> etc..." or "Windows Windows32 Windows64 Temp Users and Settings,
> etc..."

In SCO Xenix/UNIX, the home directory is usually mounted on /u.

I was amused the first time I saw it.



^ permalink raw reply	[flat|nested] 34+ messages in thread
* [TUHS] Understanding the /bin, /sbin, /usr/bin, /usr/sbin Split
@ 2012-02-02 23:16 Norman Wilson
  2012-02-02 23:37 ` Carl Lowenstein
  2012-02-02 23:58 ` John Cowan
  0 siblings, 2 replies; 34+ messages in thread
From: Norman Wilson @ 2012-02-02 23:16 UTC (permalink / raw)


Lyndon Nerenberg:

  A well designed system without library bloat can pump out some
  pretty skinny static binaries.

=======

V6, for example.  Or even V7 if carefully pruned.

Once upon a time, I made an RK05 disk (5MB) with a stripped-down
post-V7 for an 11/45.  It had just enough programs to allow
basic file manipulation and text-processing.

We used this compact system to allow our secretaries (in a
small university department in the early 1980s) to continue
typing up papers and letters on the day the machine-room
air conditioning was being replaced.  With the doors standing
open and a big fan, we were willing to leave the 11/45 running,
but not the VAX-11/780.

Due to contractor screwups (when the chilled water was turned
on, it rained up and down the hall--many poorly-soldered
joints in the copper pipes), we actually needed this for a
couple of days, so for safety I shut the system down every
evening, removed the RK05 cartridge, and took it downstairs
to the 11/34 that had a tape drive, where I booted RT11 and
took an image backup with ROLLOUT.

Norman Wilson
Toronto ON



^ permalink raw reply	[flat|nested] 34+ messages in thread
* [TUHS] Understanding the /bin, /sbin, /usr/bin, /usr/sbin Split
@ 2012-02-01  9:26 arnold
  2012-02-02 13:35 ` Tim Bradshaw
  0 siblings, 1 reply; 34+ messages in thread
From: arnold @ 2012-02-01  9:26 UTC (permalink / raw)


> http://www.osnews.com/story/25556/Understanding_the_bin_sbin_usr_bin_usr_sbin_Split

Cute, but most of the history is wrong.

The distinction between /bin and /usr/bin is true - / held the things
need to boot the system. Other things were on /usr.

The Berkeley guys did NOT invent shared libraries.  Shared libraries as
we know them came originally from Sun, on SunOS 4.x for sure, possibly
on SunOS 3.x. (Larry?)  Many commercial vendors adopted the design (Ultrix,
I think, and maybe others) and finally around 4.4 they found their way into
"pure" BSD.

/home and /opt came into the picture circa 1989 with SVR4 when Berkeley,
AT&T and Sun (and maybe a few others?) got together to standardize the
layout and make diskless booting possbile and reasonable with NFS sharing
of home directories. /sbin & /usr/sbin came into the picture at this
point also, to hold executables that until then had lived in /etc. The
idea was that /etc should only have per-machine configuration files.

The general point of the article and of some of the postings, that the
proliferation doesn't make a lot of sense today, is well taken. The
Bell Labs guys themselves recognized this when they did Plan 9.

The problem is even worse on 64 bit Linux systems, which can handle
two different architectures. /lib and /lib64 confuse a lot of the
older 'configure' programs.

Personally, I hate reading articles by "experts" where 85% of the facts
are wrong.  I lived through all of it, and I know better... :-)

Arnold



^ permalink raw reply	[flat|nested] 34+ messages in thread
* [TUHS] Understanding the /bin, /sbin, /usr/bin, /usr/sbin Split
@ 2012-01-31 19:16 A. P. Garcia
  2012-01-31 19:27 ` Warner Losh
  2012-02-01 11:12 ` Jose R. Valverde
  0 siblings, 2 replies; 34+ messages in thread
From: A. P. Garcia @ 2012-01-31 19:16 UTC (permalink / raw)


http://www.osnews.com/story/25556/Understanding_the_bin_sbin_usr_bin_usr_sbin_Split
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20120131/7b847bfb/attachment.html>


^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2012-02-05 17:15 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-05  8:38 [TUHS] Understanding the /bin, /sbin, /usr/bin, /usr/sbin Split Hendrik Jan Thomassen
2012-02-05 10:13 ` Jaap Akkerhuis
2012-02-05 17:15 ` Warner Losh
  -- strict thread matches above, loose matches on Subject: below --
2012-02-04 19:34 Pepe
2012-02-04 21:05 ` Lyndon Nerenberg
2012-02-02 23:16 Norman Wilson
2012-02-02 23:37 ` Carl Lowenstein
2012-02-02 23:58 ` John Cowan
2012-02-01  9:26 arnold
2012-02-02 13:35 ` Tim Bradshaw
2012-02-02 13:49   ` Larry McVoy
2012-01-31 19:16 A. P. Garcia
2012-01-31 19:27 ` Warner Losh
2012-02-01 11:12 ` Jose R. Valverde
2012-02-01 17:35   ` Warner Losh
2012-02-02 13:32   ` Random832
2012-02-02 17:24     ` Warner Losh
2012-02-02 17:36       ` John Cowan
2012-02-02 18:10         ` Warner Losh
2012-02-02 21:14         ` Dave Horsfall
2012-02-02 21:49           ` Warner Losh
2012-02-02 22:29             ` Tim Newsham
2012-02-02 22:47               ` Warner Losh
2012-02-02 22:59                 ` Lyndon Nerenberg
2012-02-02 23:33                   ` Warner Losh
2012-02-02 22:53             ` Lyndon Nerenberg
2012-02-02 23:35               ` Warner Losh
2012-02-03 11:10               ` Tim Bradshaw
2012-02-03 15:22                 ` Jose R. Valverde
2012-02-03 16:06                   ` Ronald Natalie
2012-02-03 16:09                   ` Steve Nickolas
2012-02-02 17:40       ` Warner Losh
2012-02-02 18:02     ` Tim Newsham
2012-02-02 13:45   ` Tim Bradshaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).