0

I have a few questions. Some things are bothering me, and maybe if I can understand why they are a certain way, I can rest my mind a bit.

In Windows, about 95% of folder and file names make sense. They clearly describe their purpose.

On linux, the official User Manual, states the following:

  1. /bin and /sbin: Stores many essential system applications
  2. /etc: Stores System-wide configuration files.

My question is, Why are folder names so silly / stupid / weird / unrelated to their purpose?

Why would "essential system applications" be placed in a folder named after a thing that is used to hold unwanted things? (bin)

Why would "system-wide configuration files" be stored in a folder called "etc"?

Braiam
  • 67,791
  • 32
  • 179
  • 269
jay_t55
  • 403
  • 2
  • 7
  • 14
  • 3
    "bin", probably standing for binary, is a file type. However I prefer this kind of names to prevent ordinary people from breaking their system -- when they don't understand they'll give up. – AliNajafies Jul 20 '14 at 09:50
  • 6
    They are probably such so that users may have to type less. I would personally prefer to type /sbin rather than /system\ binary(although there is auto-completion in BASH, but still) – Registered User Jul 20 '14 at 10:11
  • 5
    How does 'system32' folder in windows make sense to you??? And how does the name 'windows' itself make sense anyways? – user3459110 Jul 20 '14 at 14:22
  • 1
    see http://askubuntu.com/questions/138547/how-to-understand-the-ubuntu-file-system-layout/138551#138551 – Rinzwind Jul 20 '14 at 15:26
  • 4
    Related: $ man hier – Pål GD Jul 20 '14 at 16:05
  • Also, on 64-bit windows systems, the 64-bit binaries are in "System32" and the 32-bit binaries are in "SysWoW64". Wish I was making this up. – Devon_C_Miller Jul 21 '14 at 02:53

3 Answers3

14
  1. /bin stands for binaries, /sbin stands for system binaries
  2. etc stands for etcetera (this directory historically held everything that did not belong elsewhere)

You can read more here and here; and on Wikipedia.

Kodin
  • 487
5

Most of the directory names are not unrelated, but simply too short to be comprehensible without further knowledge. But this is not just a Linux issue. Other Unix-like systems as Apple's OS X for example or Solaris use the same weird names. And since you mentioned Windows... You just have to dig deeper. For example the hosts file for windows has this weird path:

C:\WINDOWS\system32\drivers\etc\hosts

There you have your unrelated "etc" again ;-)

For a quick overview over the role of the different Linux directory names take a look to this Wikipedia article http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

JepZ
  • 213
  • 3
  • 5
3

bin first of all means binary, and despite it is also the different word bin nobody associated it to any bin but binary. It was always clean in the context of Unix. Also they were needed to use really shorts, preferably three-lettered words, when they were always typing a lot. As a compliance it is still there.