LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   what does etc stand for? (http://www.linuxquestions.org/questions/linux-general-1/what-does-etc-stand-for-337575/)

aru_04 06-27-2005 05:51 AM

what does etc stand for?
 
greetings everybody,
what does 'etc' stand for ,as in /etc ?
does it mean the simple 'etcetera' or is it some other abbreviation?

Hosiah 06-27-2005 06:35 AM

Yes, etc stands for "etcetera" (-:

It's purpose in life is to host various configuration files from around your system. For instance, to add a new hard drive to your system and have Linux auto-mount it on boot, you'd have to edit /etc/fstab. If you use lynx and don't like the color scheme, you change it in /etc/lynx.conf. And so on...

While we're at it: The common Linux/Unix system folders:

/bin: where binary programs live.
/boot: the special programs that start the system when you turn the machine on.
/dev: aaaaaalll the "device" listings for hardware of every concievable flavor, along with some "imaginary" devices,
lile /dev/null and /dev/zero. When you get a random number it usually comes from /dev/random.
/etc: configuration files.
/home: the user's directories live here.
/lib: the library files that programs need to run, if they are compiled to link against these libraries.
/lost+found: look here after a system crash/kernel panic or other extreme scenario to find "orphaned" files.
/misc: kinda reminds you of /etc, doesn't it? Every time I see this folder on a system, it's empty, but I ascertain that
it stands for "miscellaneous", and I think it may be a place for users to keep their own "/etc" type files?
/mnt: "mount", the directory that acts as a gateway to every other disk or file system. Floppies are accessed from
/mnt/floppy, your second hard drive might be /mnt/hd here, and so on.
/opt: "optional", where programs that are installed after the initial system install sometimes end up.
/proc: running "processes". The "everything is a file" paradigm carried to the Linux degree! This folder hosts files
which keep tabs on boring stuff like what daemons are running and the process ID of Emacs while you have
Emacs open.
/root: root's home!
/sbin: the "system-administrator's bin file", which hosts programs that would be in /bin if they didn't have "root-only"
access permissions.
/tmp: "temporary" files, of use by programs which need to throw together a data file on-the-fly in preperation for
executing some other task. This folder gets flushed on reboot.
/usr: "user". Practically a whole other system in here, /usr/bin is still more binaries, /usr/doc and /usr/share/doc are
documentation folders, /usr/share/games/fortune is where the funny quotes come from when you log on (if
that feature is enabled). The idea is that this should be where files/programs accessible by all users should
be, and thus your desktop backgrounds come from /usr/share/wallpapers, or such. The other case is newly
installed programs sometimes end up in /usr/local/bin.
/var: "variable". System logs in here, recording such things as the last foo commands typed at the prompt, start-up
boot messages, and such.

The whole file system evolved by consensus over eons, and is usually consistent from one distro to another. The burden is also on developers writing install applications to use this file system, and not make up weird folder schemes on their own. As for users, they have complete freedom to do whatever they want in their own directory.

theYinYeti 06-27-2005 08:26 AM

/misc is often use as a base mount point for "miscelanous" peripherals using the automounter (see "autofs" kernel module).

Yves.

Marius2 06-27-2005 09:57 AM

Quote:

Originally posted by Hosiah
[...]
/usr: "user". Practically a whole other system in [...]

Actually, /usr stands for Unix System Resources.

Hosiah 06-28-2005 06:26 AM

OK, that's 14 out of 16, for a score of 87.5%, a B+ as I recall.
I'll quit while I'm ahead! ;)

mlangdn 06-28-2005 11:11 AM

This is an interesting read:

Ancient Linux Abbreviations

broggyr 06-28-2005 01:22 PM

Very interesting & informative thread, as I had the same /etc question myself this very morning :)

Hosiah 06-29-2005 04:17 AM

Yeah, but "Unix System Resources"! What a curve ball! I'm positive I've heard other people refer to that directory by pronouncing it "user", too. One of those mistaken assumptions you pick up...

This thread isn't complete without mentioning the old bumper sticker:
"f u cn rd ths, u mst us nx!"
Which I think is due for a revival.

broggyr 06-29-2005 06:21 AM

I was almost sure that /usr was "user" -- shows ya what happens when you assume ;)

aru_04 06-30-2005 03:27 AM

thanks everybody, particularly Hosiah!

gcarrillo 03-04-2008 05:32 PM

/usr is "user"!
 
I too have heard people at times pronounces /usr as "u-s-r", believing that it stands for Unix System Resource. I personally disagree with this belief, and pronounce it as "user" myself. I think this because for all abbreviations I've come across in Unix, they make sense when expanded...however this one would not. "Unix System Resources" could refer to any other part of the system just as easily as it could for /usr, so I'd have to say it cannot stand for that. The File System Hierarchy Standard says that /usr is for read-only, shareable data. Shareable among different users...so that further supports the case for "user" in my mind...

jay73 03-04-2008 06:18 PM

/usr is totally user-agnostic so what could it have to do with "user"? As for the FHS, I don't recall that being around back in the early seventies.

dickgregory 03-05-2008 11:00 AM

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

gcarrillo 03-05-2008 11:50 AM

Still think it's "user" :)
 
/usr contains objects that support operations performed by users with the regular priveleges. Objects higher than /usr in the root filesystem support operations performed by the system, and usernames that are system-related. That is the abstraction that I use. Moreover, the fact that the FSH wasn't around in the early seventies has no bearing on whether or not it documented the intended purpose of that subtree correctly.

DragonSlayer48DX 03-05-2008 12:33 PM

It is USER...
 
1.17. /usr

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

http://tldp.org/LDP/Linux-Filesystem.../html/usr.html

Cheers


All times are GMT -5. The time now is 12:08 PM.