Friday, 14 September 2012

Meaning of /etc, /usr in Linux?

In my career, I have come across many people who have described the acronyms /etc, and /usr in very different ways. However, for all other purposes, all the users and Linux community generally agree on the use intended or otherwise, of these filesystem hierarchy levels.
The discussions that i have heard goes like so:

/usr


/usr: "user". , eg. /usr/bin is for general user binaries, /usr/doc and /usr/share/doc

Actually, /usr stands for Unix System Resources.

/usr usually contains by far the largest share of data on a system. Hence, this is one of the most important directories in the system as it contains all the user binaries, their documentation, libraries, header files, etc.... X and its supporting libraries can be found here. User programs like telnet, ftp, etc.... are also placed here. In the original Unix implementations, /usr was where the home directories of the users were placed (that is to say, /usr/someone was then the directory now known as /home/someone). In current Unices, /usr is where user-land programs and data (as opposed to 'system land' programs and data) are. The name hasn't changed, but it's meaning has narrowed and lengthened from "everything user related" to "user usable programs and data". As such, some people may now refer to this directory as meaning 'User System Resources' and not 'user' as was originally intended.

usr stands for "user-specific resources" and it fits quite nicly i think. it might be other abbreviations that is used with "usr" though, but i wouldnt know about them other then the ones ive read in this thread

According to linux-training.be/files/books/html/fun/ch09s08.html, it stands for Unix System Resources.

/usr - The secondary hierarchy which contain its own bin and sbin sub-directories.


/etc

 '/etc' is indeed an acronym and stands for "Editable Text Configuration".

Yes, etc stands for "etcetera" It's purpose in life is to host various configuration files from around your system.

Probably not the official meaning, but I have seen etc referred to as "editable text configuration".

it means the simple 'etcetera'

it means 'extended tool chest' per this gnome mailing list entry or per this Norwegian article.

"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.

So whats your take on these!

No comments:

Post a Comment