Slashdot Mirror


Define - /etc?

ogar572 asks: "There has been an ongoing and heated debate around the office concerning the definition of what /etc means on *nix operating systems. One side says "et cetera" per Wikipedia. Another side says it means 'extended tool chest' per this gnome mailing list entry or per this Norwegian article. Yet another side says neither, but he doesn't remember exactly what he heard in the past. All he remembers is that he was flamed when he called it 'et cetera', but that 'extended tool chest' didn't sound right either. So, what does it really mean?"

34 of 548 comments (clear)

  1. It means by offlerthecrocgod · · Score: 5, Funny

    It means etc...

    --
    Shin: a device for finding furniture in the dark.
    1. Re:It means by Anonymous Coward · · Score: 5, Funny

      etc tool chest

    2. Re:It means by Anonymous Coward · · Score: 5, Informative

      The UNIX Programming Environment written by Brian W. Kernighan and Rob Pike of Bell Labs, published in 1984 by Prentice Hall defines /etc as et cetera on page 63. IMO this is the single best Unix book ever wriiten to learn Unix.

  2. Its pronounciation gives us a clue by crath · · Score: 5, Informative

    Long time UNIX hacks---and by that I mean UNIX guys from the early-1980s---pronounce /etc as "slash ett cee"; to me that makes it clear that /etc's origins are as "et cetera".

  3. Configs by Chemisor · · Score: 5, Funny

    Enormous Trove of Configuration files, that's what it is.

  4. Extended Tool Chest? by Wdomburg · · Score: 5, Insightful

    Considering none of the other standard directories are acronyms, I'd have to call bulltish on this one. :)

  5. Wow, I feel old by Spackler · · Score: 5, Informative

    20 years ago, there was nothing to settle. It was et cetera. It was named that because of what it was used for. The configuration files for other things that live elsewhere. It provided a short reference to those files. Also notice how we did not like to type back then. Before that time, you were typing on what amounted to a glorified printer with a keyboard, so every char you did not have to type was great. One central location for binaries with a 3 letter name. Everyone knew where everything was. I'd get flamed if I said it was better than it is now, but it really was more elegant.

    Extended tool chest? Yeah, name tools that go in /etc. It all followed logic back then. Anyone loading tools in /etc would have been the one getting flamed for not knowing how to organize a system.

    Ok, now I really do feel old because it was more than 20 years ago. Sad because I was smart enough to answer this and not smart enough to make millions when the industry took off. I'm also too stupid to understand flame wars. If you like your system a different way, do it. If you think I should do mine different, pound sand.

    1. Re:Wow, I feel old by Anonymous Coward · · Score: 5, Informative

      I agree. I've been using UNIX since 1985 and it was *always* just "slash-et-cee" and meant etcetra. The whole "Extended tool chest" is just a silly Backronym. However...

      However...

      > Yeah, name tools that go in /etc.

      Actually prior to the creation of /sbin it actually was common for system binaries (like init, mkfs, mount, ...) to be placed in /etc. Eventually people realized that using a single directory for both configuration files and binaries was disgusting and /sbin came into being. By the mid 90's most modern UNIX variants had moved all the binaries to /sbin. Some OSes still provide symlinks for compatibity though: try a "ls -l /etc | grep sbin" on a Solaris machine some time.

    2. Re:Wow, I feel old by Coeurderoy · · Score: 4, Informative

      So do I, ;-), I remember very well my first contact with Unix in the summer of 81 at UCB.
      "Ok, you create files in your home directory, you will find the commands in bin or usr bin, .... and if you're curious you can look at the /etcetra directory, that is the place where all the rest of "usefull stuff" goes, mostly initialisation files and some shared configuration".

      Well now of course I know the people there lied to me it really means "extraterrestrial creative tormentators", and proves that the aliens are dislexics.

      Cheers: and don't worry there is still some blood left in us old *IX farts.
      Did you notice that even the "coolest youngsters" do not dare to have something like the '85 Usenix "Sex, Drugs and Unix" Badge ?

    3. Re:Wow, I feel old by trb · · Score: 5, Informative

      /etc is et cetera. And dsw, the predecessor to rm -i, has a more amusing etymology. I've been hacking UNIX since v6. If I needed a source of reliable UNIX history, I would not turn to the Gnome project, and I would not turn to Norway. If you want an authoritative answer, ask Dennis Ritchie. If you want a reliable answer, try an old USENIX hacker, or UNIX historian Peter Salus.

    4. Re:Wow, I feel old by Mr.+Protocol · · Score: 4, Insightful

      I'm even older. I've been doing UNIX since v5 in about 1974. And /etc means et cetera. I wasn't even aware people were back-forming revisionist interpretations. How odd.

      This is the sort of thing that makes me distrust historical interpretation of stuff that actually matters.

  6. Backward etymology by hey! · · Score: 5, Informative

    I'm pretty sure it is "et etera". I've been mucking with Unix since Unix V7 (1980), and I've never heard of "extended tool chest". It doesn't really make sense because you don't put any tools there. If there were any "tools" to be put in an "extended chest", they'd have gone in "/usr/local" back in the day. That was before the practice of having an "/opt" directory evovled.

    I always assumed that configuration stuff got shoved in etc because it wasn't a program (that would go in "/bin") it wasn't a library ("/lib") and it wasn't some sort of user data ("/usr" -- this was before "/home"). It was something else, so it went in a place set aside for miscellany :"/etc". Over the years it became clear that "/etc" was very important, and "/usr" was too cluttered, etc., and thus we have the evolution of the modern Unix file hierarchy.

    The hierarchy may include historical obscurities such as "/etc", but it is remarkably well thought out. It shows the wisdom of abstracting the file system from storage devices. "/etc" also eliminates, or at least reduces the argument for, a system wide registry file such as Windows has, which has turned out to cause as many problems as it solves.

    But it is undoubtedly a bit obscure to the newcomer's eye.

    I remember the 1980s when the microcomputer transformed business. In the mid 1980s, most people who worked in computers had been weaned on, or least familiarized, with some form of Unix. When I started my job at one place around 1986, my predecessor had arranged everybody's file systems so their applications were stored in folder under a "bin" folder at the root (this was a Mac shop). By 1990, I was hiring people who had only used personal computers and had never used Unix. One of those people extended the "bin" traditoin by naming the application folder "Bin of Applications" -- as if "bin" referred to an open box, rather than "binary". It gave me a chuckle. "Bin of Applications" carried the idea to the user much better than "bin", and posed no particular inconvenience on a system where you never have to type path names.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  7. Re:Pronunciation? by ari_j · · Score: 5, Informative

    I'm replying to you because you were more polite than the sibling. Just because the word "cetera" is Latin does not mean that it is pronounced with an S sound. In fact, in Latin, it would never have been pronounced that way. In the days of Caesar, it would have been pronounced with a K sound and, as the Latin language evolved into ecclesiastical Latin, it would be pronounced with a CH sound.

    The pronunciation with an S sound comes from the way that Latin words have usually been anglicized. Most often, the letters are pronounced as in English but the syllables are accented as in the original Latin.

  8. Not an acronym by Spazmania · · Score: 4, Interesting

    Why would /etc be an acronym when every other directory off root is an abreviation? /bin - binaries /boot - bootstrap files /dev - devices /home - user home directories /lib - libraries /mnt - temporary mounts /proc - processes /sbin - static binaries /tmp - temporary files /usr - user programs (not boot critical) /var - variable data

    --
    Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion.
  9. Re:Pronunciation? by Chris+Mattern · · Score: 4, Interesting

    The correct pronunciation is "et setera", since it is taken directly from Latin.


    In which, ironically, it is pronounced "et ketera" (stress on the "ke" and remember to roll the r). English has done really weird things to the pronounciation of Latin.

    Chris Mattern

  10. Re:I vote for et cetera by AsnFkr · · Score: 5, Funny

    "/var" didn't exist until long after "/etc" was created; so, you can't look to /var's use to provide a clue to /etc's origins.

    server / # ls -lah
    total 72K
    drwxr-xr-x 47 root root 4.0K Feb 11 10:23 etc
    drwxr-xr-x 14 root root 4.0K May 11 2005 var


    Wow, you're right. /etc is exactly three months older than /var. Amazing!!

  11. Re:Pronunciation? by ari_j · · Score: 4, Interesting

    No, but they did write millions of lines of poetry, much of it with strict forms. If you read a million lines of C with lots of good comments, you'd figure out the syntax before you finished.

  12. Definition by Anonymous Coward · · Score: 4, Funny

    "Eh... That's where them Config files goes"

  13. Re:etc stands for... by ari_j · · Score: 5, Insightful

    It's et cetera. If you look at the Unix hierarchy, you get:

    • /bin - binaries
    • /sbin - system binaries
    • /dev - devices
    • /home - user home directories
    • /lib - libraries
    • /mnt - temporary mount point
    • /root - root's home directory in case /home is on another filesystem
    • /var - variable data, such as databases, news, and mail
    • /tmp - temporary files
    • /usr - mostly there because it wouldn't fit on / :P
    • /etc - stuff that doesn't fit any of the above

    It's not about configuration files, either. /etc is home to both configuration and system-essential files, such as passwd and motd. I wouldn't call passwd "configuration," and I wouldn't call it "data." It's more "control." But that doesn't matter - the stuff in /etc just wouldn't fit anywhere else. All the backronyms in the world won't change that.

  14. origin of /usr by dmoen · · Score: 5, Informative

    Originally, /usr was an abbreviation of "user", it was where you put home directories. /usr/ken was Ken Thomson's home directory, and /usr/dmr was Dennis Richie's home directory.
    (These are the guys that invented Unix.)

    Then people started making home directories named after software packages. After a while, these names became standardized, and it became necessary to put home directories in some other location than /usr.

    Doug Moen

    --
    I have written a truly remarkable program which this sig is too small to contain.
  15. Yeah, and /lib stands for ... by Bazman · · Score: 5, Funny

    'linked-in binaries'. Here's some of the other TLAs: /lib: linked-in binaries /etc: extended tool chest /usr: unix system routines /bin: basic instructions (native) /var: volatile access region /opt: one per terminal /tmp: this maybe purged /mnt: multiple network things /dev: dont ever violate /sys: she's your sister

  16. Re:I've always assumed et-cetera by squiggleslash · · Score: 5, Informative

    It does. Originally it contained configuration files, start-up scripts, and system management tools needed at boot. As time has gone on, most of the second group are in subdirectories of /etc, and the latter group was moved to /sbin. Amiga users will probably note that the "S" directory had similar problems in AmigaOS 1.x, and was similarly broken up on AmigaOS 2.x.

    Historically, Unix had /sys for the kernel (short for SYStem, duh), /usr for user areas (yes, user areas), /lib for system libraries, /bin for top-level binaries, and /etc as the miscellaneous area. As time went on, substantial amounts of the operating system went into /usr, with the "bin" account set up to contain most of the tools people needed (which is why bin is also in /etc, and owns substantial amounts of the operating system, despite the apparent lack of a need to have that. It's legacy practices.)

    So some time in the mid to late eighties, much of this started to be moved around. Real home directories were moved out of /usr to a variety of directories, eventually standardising, Mac OS X aside, on /home. /usr itself started to be reorganized to look something like the top level, /etc was cleaned out (though much of this happened in the mid-nineties), and we have what we see today.

    Meanwhile, people trying to be "clever" have invented new names for all these areas. I've heard people claim that USR stands for "Unix System Resources", which opens the question of why all the system directories don't begin with "US"? We see the nonsense above about ETC meaning something other than, well, etc, and other silly explanations doubtless exist for BIN and VAR.

    The names mean what they sound like they mean. If it doesn't sound like a directory has a name that fits its current use, it's usually because it wasn't intended for that use originally.

    --
    You are not alone. This is not normal. None of this is normal.
  17. Re:Pronunciation? by Haeleth · · Score: 4, Informative

    how do we know how anything was pronounced in the ancient world?

    We don't, but historical linguistics is like any other science - we can try to find the theories that best explain the available evidence, and refine those over time as new ideas are developed.

    Did the Romans produce a Latin dictionary with IPA transliterations for each word?
    No, but they did many other useful things, like transliterate words between languages and scripts; e.g. writing Latin names in the Greek alphabet and vice versa, or writing Celtic and Germanic names in the Latin alphabet. This doesn't tell us much about the actual sounds the alphabets represented, but it tells us about their relationships, and reduces the number of plausible solutions for ancient pronunciation.

    For a simple example, "Caesar" was regularly written in Greek as the equivalent of "kaisar", not as "saisar" or "saizar". The fact that different Greek letters were chosen to represent the different Latin letters implies that they represented different sounds. From considering all the other evidence, we find that the solution that is most consistent with the observed facts is the one that has Greek kappa and Latin C pronounced like an English K; therefore we conclude that "Caesar" was pronounced with a "k" sound, and it also seems reasonable to assume that "caetera" was consistent with that.
  18. Re:etc stands for... by ModernGeek · · Score: 4, Insightful

    The people who made up these file systems are not the pointy haired middle management type, they are geeks like me and you. They don't have acronyms for everything. /etc isn't going to stand for something like "extendable tool configuration", it is either going to stand for et cetera or nothing at all. People who want to sound cool by saying things like, "SQL stands for Structured Query Language" are just trying to "sound smart" in front of their "friends". That's my philosophy after looking at your explanation of the UNIX hierarchy.

    --
    Sig: I stole this sig.
  19. Re:Pronunciation? by Pharmboy · · Score: 4, Funny

    If you read a million lines of C with lots of good comments, you'd figure out the syntax before you finished.

    And if you read a millions lines of Perl, you would come to the conclusion that it has no syntax, then you would scratch your eyes out with a ball point pen. ;)

    --
    Tequila: It's not just for breakfast anymore!
  20. Re:etc stands for... by Just+Some+Guy · · Score: 4, Insightful

    ...as opposed to the non-editable, non-text configuration files that Unix systems are famous for?

    These are the people who named the editor "ed". Don't overthink it.

    --
    Dewey, what part of this looks like authorities should be involved?
  21. Backronym. by Ayanami+Rei · · Score: 4, Informative

    It may mean that now (and /usr = Unix System Resources, yeah right)

    But if you remember, programs like mount and user databases (when passwd files got too long to scan) were thrown into /etc. And configuration files also used to live in places like the root directory, or /var. /usr or even /lib, sometimes in ./conf/ subdirs.

    So it really did mean etcetra. And /usr really did mean 'users', as in, resources for users not administrators. Well at one point it also held home directories before that was split off into home.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
    1. Re:Backronym. by Anonymous Coward · · Score: 5, Funny

      because when the system looks for the top-level directory, it would have to iterate through more directories to get a match. Duh. People think that just because 'cd /etc/init.d/' and 'cd /usr/local/include/emacs/emacs2.1/site-lisp/' take the same amount of time after you hit enter then they both must be a single processor instruction or something. In fact, the computer is doing millions of calculations more for the second command, while you sit there picking your nose. That's why I only put one file or subdirectory per directory, so it's simpler for the computer to find it. If a program installs differently, I rewrite it. Since my computer doesn't have to work as hard, it lasts longer. If I did things your way, I might as well pound my motherboard with a shovel. You fucking prick, you disgust me. If someone I knew were putting too many entries directly under root, I'd smash their face with my fist. Asshole.

  22. From "The UNIX Programming Environment" by eGabriel · · Score: 5, Informative

    Brian W. Kernighan and Rob Pike, chapter 2.6 -- "The Directory Hierarchy":

        "/etc (et cetera) we have also seen before. It contains various administrative files such as the password file and some systems programs such as /etc/getty, which initializes a terminal connection for /bin/login. /etc/rc is a file of shell commands that is executed after the system is bootstrapped. /etc/group list the members of each group."

    I looked through Ritchie and Thompson's "The UNIX Time-Sharing System" and found no mention of /etc, so that's the best I could do from my own bookshelf.

  23. Re:I've always assumed et-cetera by Mikachu · · Score: 5, Funny

    /bin for top-level binaries

    Wait wait wait... I always thought /bin was the recycling bin.

    ...

    Shit.
  24. Re: other unix-related bacrynyms: by Anonymous Coward · · Score: 5, Funny

    emacs - Escape Meta Alt Control Shift.
    gdb - Get Down Baby.
    gcc - Give Communism (a) Chance.
    linux - Linus Is Not Usually Xeroflulogitic.
    lisp - Lisp Is (for) Symbolic Programming.
    java - Just Another Variant (of) Ada.
    perl - Perl Essentially Resembles Lisp.
    printf - People Rarely Insist (on) Naming This Function.
    sed - Slashdot (is) Easily Duped.
    top - Totally Ongoing Programs.
    vi - Very Irritating.

  25. I went to one of the sources. by sconeu · · Score: 4, Informative

    According to Dr. Peter H. Salus, it means et cetera.

    According to Dr. Salus, "Editable Text Configuration" is alien to the thinking of the creators.

    --
    General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
  26. Re:Pronunciation? by Dun+Malg · · Score: 4, Informative

    We know "Caesar" sounded like current-German "Kaiser", but this doesn't mean all Latin "C" sounds like "K". I think it depended on the next vowel, as it does in most current romance languages You think incorrectly. Romance languages and English palatized the Latin 'C' into a /ts/ sound 9 or 10 centuries after the fall of the Roman empire. The Latin 'C' made the hard /k/ sound, always. From the doc you linked:

    The Consonants:

    * c always hard:
    This is fairly well established. The Romans were highly literate and were quite capable of describing the sounds their letters made. It's not like trying to guess what color dinosaurs' skins were. We know the Latin 'C' made a /k/ sound.
    --
    If a job's not worth doing, it's not worth doing right.
  27. Disingenious backronym by arth1 · · Score: 5, Informative
    Keep in mind that pathname.com is only a decade old, and the FHS even newer. /etc and /usr were in use a LONG time before that, and what FHS do are making recommendations for today, not an accurate representation on what went on before they were around.

    Yes, "editable text configuration" is a backronym. /etc is et cetera. All the system directories were kept to three letters, and all of the names are abbreviations -- none are acronyms.

    /bin = binary
    /lib = library
    /var = variable
    /usr = user
    /tmp = temporary
    /etc = et cetera
    /adm = administrative (now found in /var/adm)
    /log = logs (now found in /var/log)
    Later additions followed the same pattern:

    /net = network
    /mnt = mount
    In no circumstances were any of these acronyms, and making this up after the fact doesn't make it so. The general acronym fad, or I should say initialization fad, didn't appear until the 80's, and by then, the names were well established.

    And, as another user pointed out "editable text configurations" is a stupid name too, because if it's text, it's evidently editable. So why not just "text configurations" then? Also, in early Unix, everything was editable (remember, in Unix, everything is a file), so that's superfluous too. And, lastly, it was the repository for a lot of things that weren't configurations, including binaries.
    Again, this is a backronym, and not even a clever one.

    Regards,
    --
    *Art