git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Does git belong in root's $PATH?

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Jan 8, 2006, 03:00 UTC
Message-ID
<43C08047.6090701@zytor.com>
In-Reply-To
<dpppg4$qkd$1@sea.gmane.org>
walt wrote:
Show 9 quoted lines
> H. Peter Anvin wrote:
> 
>>/usr used to be what is now called /home.  What you're describing above
>>is the current usage.
> 
> History lessons are valuable for us youngsters ;o)  Can you give us a
> brief description of what motivated such a change?  (Just as important,
> of course, is whether the original motives have changed or disappeared.)
> 

This is the history as far as I understand it. Keep in mind I was only 8 years old in 1980, and I think I first learned about how Unix worked in 1985 or 1986, so not all of this is first-hand.

/usr was initially used for home directories (user directories.) Both fore reasons as have been previously discussed (remember, most easy multi-user systems were a lot friendlier than one would expect today), and because the root disk often filled up, it became common for users to put binaries in /usr/bin, and often the sysadmin, too.

As the need for system security tightened, by the 80's this was a pretty unusable configuration. Since home directories were specified in /etc/passwd, those could, and often were, located elsewhere -- much easier than trying to change the now-established conventions of /usr/bin et al. A lot of systems in the 80's were massively multiuser anyway (workstations were coming in but were rare), and so you'd frequently see paths like /u2/h/hpa for example (my actual home directory location on our college server.)

The convention of using /home for home directories seems to have evolved out of necessity when networking came in use on a large scale (NFS, automounter, etc), probably in the late 80's-early 90's. By the time Linux emerged in 1991 it was pretty well-established on smaller systems; larger systems still tended to use local conventions inherited from previous generation systems.

	-hpa
Previous: waltNext: Linus Torvalds
Message 7 of 10 in “Does git belong in root's $PATH?”
  1. waltJan 7, 2006
  2. Andreas EricssonJan 7, 2006
  3. H. Peter AnvinJan 7, 2006
  4. Andreas EricssonJan 8, 2006
  5. H. Peter AnvinJan 8, 2006
  6. waltJan 8, 2006
  7. H. Peter AnvinJan 8, 2006
  8. Linus TorvaldsJan 7, 2006
  9. H. Peter AnvinJan 7, 2006
  10. Sam RavnborgJan 7, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.