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.
Thread beginning with comment 505192
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[3]: Wow, That Was Simple
by giffypop17 on Mon 30th Jan 2012 21:48 UTC in reply to "RE[2]: Wow, That Was Simple"
giffypop17
Member since:
2009-03-09

/users
/system
/programs (or /Apps, in this day and age).

More is not needed at root.



That looks a lot like:

Documents and Settings
Windows
Program Files


Just sayin'

Reply Parent Score: 15

RE[4]: Wow, That Was Simple
by phoenix on Mon 30th Jan 2012 21:50 in reply to "RE[3]: Wow, That Was Simple"
phoenix Member since:
2005-07-11

Windows 7 is closer:
\Users
\Windows
\Program files
\Program files(x86)

Reply Parent Score: 5

RE[5]: Wow, That Was Simple
by shotsman on Tue 31st Jan 2012 16:48 in reply to "RE[4]: Wow, That Was Simple"
shotsman Member since:
2005-07-22

And the Windows directory layout is a paragon of logical thought?

Why is the 'hosts' file buried in WINDOWS/System32/Drivers/etc?

'System32'? of an 64bit OS?

I've been using a variety of Operating Systems since DEC Dos V8 on the same PDP-11 as K&R, VMS, i/OS through to the likes of Android and IOS.

I have to say that the LSB version of 'where things are put' works for me.

Finally, I'd really like to shake the hand of whoever thought it would be neat to default some critical directories (eg Program Files in windows) to contain a SPACE character.
I'd give them a 'Glasgow Handshake'.

Frankly every OS has its oddities.

Reply Parent Score: 4

RE[5]: Wow, That Was Simple
by frderi on Tue 31st Jan 2012 21:11 in reply to "RE[4]: Wow, That Was Simple"
frderi Member since:
2011-06-17

Mac OS X Since 10.0 :

/Users
/System
/Applications

Reply Parent Score: 0

RE[4]: Wow, That Was Simple
by leech on Mon 30th Jan 2012 23:15 in reply to "RE[3]: Wow, That Was Simple"
leech Member since:
2006-01-10

"/users
/system
/programs (or /Apps, in this day and age).

More is not needed at root.



That looks a lot like:

Documents and Settings
Windows
Program Files


Just sayin'
"

Yeah, and those that actually have to dig through file locations occasionally find the "windows way" a nightmare! I need to find where a file is on Linux? There are a ton of ways. I need the actual location of an executable? Use 'which <program>' and it'll show you the full path. You need to know what package a file belongs to? dpkg -S <filename> (at least on Debian based distributions.)

The Windows way is a mess, because while you have Program Files or Program Files (x86), not all installers default to put things there, and even then you can change the default so not all systems will have files in the same place.... Then you have the fact that some installers want to put the company name in there, so you end up getting a huge mess. A good example is Steam. C:\Program Files (x86)\Steam\SteamApps\common\rainbow six 3 gold\Mods\ is where I have to install mods to. Not all mod installers detect where it is installed, so I manually have to drop files in there.

Far easer to have /usr/games/doom/ and throw the files in there, wouldn't you say?

Reply Parent Score: 5

RE[5]: Wow, That Was Simple
by dorin.lazar on Tue 31st Jan 2012 01:21 in reply to "RE[4]: Wow, That Was Simple"
dorin.lazar Member since:
2006-12-15

Just because mod creators are lazy doesn't mean that we all should be.

Reply Parent Score: 1

RE[5]: Wow, That Was Simple
by lucas_maximus on Tue 31st Jan 2012 01:22 in reply to "RE[4]: Wow, That Was Simple"
lucas_maximus Member since:
2009-08-18

99% of all installers let you modify the installation path ... just saying.

Reply Parent Score: 2

RE[4]: Wow, That Was Simple
by dorin.lazar on Tue 31st Jan 2012 01:19 in reply to "RE[3]: Wow, That Was Simple"
dorin.lazar Member since:
2006-12-15

Is that a bad thing? Not if you ask me.

Reply Parent Score: 1

RE[4]: Wow, That Was Simple
by l3v1 on Tue 31st Jan 2012 07:01 in reply to "RE[3]: Wow, That Was Simple"
l3v1 Member since:
2005-07-06


That looks a lot like:

Documents and Settings
Windows
Program Files


Just sayin'


Well, then take a look under them. And you'll see how some of us take the linux "nightmare" anytime over the above.

Reply Parent Score: 4