Why the unix bin directory named in that way

directory-structurehistory

I thought the bin directory is the place for binary files. If so, what about script files? Should they be placed somewhere else?

What's the history of bin directory and where should I put script files if the bin means binary?

Best Answer

With regard to the meaning of the /bin directory, to quote the intro(0) manual page source from the Unix Research V3 snapshot now available on github and elsewhere:

Commands generally reside in directory /bin____ (for
bin___ary programs).

This same text appears in The Unix Programmer's Manual (implicitly the first edition), in the Introduction, from 1971.

As far as I can tell there were no user commands supplied as scripts in early Unix and it was not until V6 that two scripts first appear in /usr/bin by which time the convention of searching /bin and /usr/bin for commands was very well established and so that would be the natural place to put them -- there was never any need to segregate them from "binaries", and there still isn't.

Related Question