Just to clear up a few things regarding:
-does ubuntu use registry? if not what does it use then? i've read it does not.
-does it use environment variables?
-compilers? i've read there's already one in ubuntu, where is it?
-how does ubuntu recognize installed programs if it does not use registry?
-what are executable files in ubuntu? i've read every file could be an executable.
-i wan to understand the terminal (cmd.exe in windows) |
1. Ubuntu is a specific distribution of Linux. Linux does not have a centralized, hierarchial configuration database like the Windows Registry. The filesystem itself is hierarchial, with a single root, /, and is [traditionally?] organized in a very specific manor.
/ is the root
/boot contains the boot loader
/dev contains device files, which can be thought of as pointers to device drivers
/proc is a virtual filesystem that displays process information
/var contains frequently-changing files
/tmp contains temporary files
/etc contains configuration files
/sbin and /bin contain programs
/usr (for Unix System Resources) contains other installations, which could include programs
/home contains subdirectories for each user to store files in, similar to My Documents in Windows
...and so on
2. GNU Compiler Collection (GCC) is the most common.
3. No OS just decides to run programs without being instructed to do so. For example, in Linux, /etc/profile.d is a directory where scripts will be run upon logon for any user. Similar to a Startup folder in Windows.
4. Executable is a permission in Linux. Program files are often binary and executable. Other files can also be 'flagged' as executable, like a DOS/Windows batch (.bat) file, or as scripts. Scripts in Linux are just text files but often times they begin with a Shebang (#!) line that tells the shell what program should interpret the script.
The file command can be used to get more information about a particular file, for example:
> file that.sh
that.sh: ASCII text
> file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9,
dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
> |
5. In Linux, the program that provides the Command Line Interface (CLI) is called a shell. There are a number of popular shells, Bash, C-Shell, etc. There is a huge overlap on the features that the various shells provide but there are significant differences between their scripting syntax/capability.
Here are some commands to look up in order to get started: ls, cp, mv, rm, mkdir, rmdir, cat, grep, man
Cheers!