Linked by Thom Holwerda on Mon 30th Jan 2012 20:39 UTC
General Unix Finally something really interesting to talk about. If you've used UNIX or any of its derivatives, you've probably wondered why there's /bin, /sbin, /usr/bin, /usr/sbin in the file system. You may even have a rationalisation for the existence of each and every one of these directories. The thing is, though - all these rationalisations were thought up after these directories were created. As it turns out, the real reasoning is pretty damn straightforward.
Permalink for comment 505204
To read all comments associated with this story, please click here.
Comment by Brynet
by brynet on Mon 30th Jan 2012 22:43 UTC
brynet
Member since:
2010-03-02

On at least BSD, there is the hier(7) man page that documents the filesystems hierarchical layout.

/bin == statically linked binaries, standard unix programs.
/sbin == statically linked binaries, system utilities, typically intended system administrators.
/usr/bin == shared binaries, base programs for users.
/usr/sbin == shared binaries, base system utilities for users.
/usr/local/bin == shared binaries, 3rd party user programs.
/usr/local/bin == shared binaries, 3rd party system utilities.

It's not that difficult, and it's pretty easy to understand.

http://www.openbsd.org/cgi-bin/man.cgi?query=hier&manpath=OpenBSD+C...
http://www.freebsd.org/cgi/man.cgi?query=hier&manpath=FreeBSD+9.0-R...
http://netbsd.gw.com/cgi-bin/man-cgi?hier++NetBSD-current
http://developer.apple.com/library/mac/documentation/Darwin/Referen...

Edited 2012-01-30 22:44 UTC

Reply Score: 6