Edit: for information about the file structure:
http://www.pathname.com/fhs/pub/fhs-2.3.html
I want to clear these questions up, because the answers I've read above weren't very good, with the exception of moorecm's, which I'd like to expand on.
-does ubuntu use registry? if not what does it use then? i've read it does not. |
No. The windows registry was made (IIRC) as an attempt to remove the need for the tumultuous amounts of .ini files stored all over the place. Linux uses the UNIX filesystem hierarchy which negates the need for a massive database, because everything has a specific place to go. Programs tend to use /etc/<program>/ for any permanent configuration files.
As an example, X.org stores these files in /etc/X11:
/etc/X11/
twm/
system.twmrc
xinit/
xinitrc
xinitrc.d/
30-dbus
40-libcanberra-gtk-modul
xserverrc
xorg.conf |
moorecm wrote: |
---|
/boot contains the boot loader |
/boot also stores the zipped kernel binary (usually /boot/vmlinuz) and the initial ramdisk (usually /boot/initrd.img).
-does it use environment variables? |
Yes. For example, the PATH variable, among others.
-compilers? i've read there's already one in ubuntu, where is it? |
Most distributions of Linux come with various packages (GNU coreutils and GNU binutils, among others) so you can use it without installing them afterwards. Yours is almost certainly /usr/bin/gcc
-how does ubuntu recognize installed programs if it does not use registry? |
Programs can put their binary files in one of
/bin: programs necessary for everyday use by all users
/sbin: programs for use by the system
/usr/bin: other programs that aren't essential, but are still used very commonly
All of those are in your PATH variable. Basically what happens when you type a command is this:
1. Read "command"
2. Read the next directory from the PATH variable
3. If "command" is in "directory":
execute command
else
jump to 2 |
As for the other two, I can't expand on moorecm's answers.