Inside Linux The (Web design online) last example is a little
Saturday, April 28th, 2007Inside Linux The last example is a little extreme. I suspect most people will not specify a path this way. First, you have to know how many levels deep you are, and then specify the complete path. Why not specify the fully qualified name, as shown in the fourth example? The beginning of this section mentioned that the directory structure is a method of organizing files. Let’s examine some of the standard Linux directories. The root directory (/), as was discussed previously, is primarily used to hold all other directories. It is bad karma to store any file in the root (other than what Linux stores there). The /bin directory stores binary executable files (programs). The name bin is derived from binary. Only Linux system binaries should be stored in this directory. Software (user binaries) that you install is normally stored in another directory. The /dev directory holds the files that refer to devices. If you recall from the previous section, everything in Linux is a file, and devices (such as a printer) are no exception. The /etc directory holds Linux-specific configuration files. If you ever have to reconfigure parts of Linux, you may find yourself editing some of these files. The /home directory contains the home directories for users known to the system. When you log in to the system, you are taken to your home directory, which is found under /home. The /lib directory is used to hold shared library files. These shared library files contain common function routines used by programs. Library files are referred to as shared because more than one program can access routines found within them. This fact keeps most programs small (and the system smaller) because each program does not have to store those routines. The /proc directory holds process and kernel runtime information. The information is actually in memory but is accessed through /proc. The /tmp directory, as you may have guessed, stores temporary files. Most of these temporary files are created by running processes. It is a good idea to visit this directory from time to time to see if any (large) files are left lingering around. The best time to do this is just after logging in to the system. The /usr directory is used to contain most of the software packages that you install. This directory contains other directories, such as /usr/bin, /usr/etc, /usr/lib, /usr/local, /usr/man, and /usr/src. Let’s take a look at these directories. Executables are stored in /usr/bin (the same as /bin does). Various configuration files not found in /etc are stored in /usr/etc -mainly configuration files used by the installed software packages. The /usr/lib directory stores shared library files for the software packages. The man pages (help files) are stored in /usr/man. The /usr/man directory will also contain a number of directories. Source code for software can be found in /usr/src. The size of this directory can be quite large if you opt to install source code for all the software packages. The /usr/local directory is used for nonessential files and programs. The structure of /usr/local will normally be different between UNIX systems. As a rule, however, it will contain /usr/local/bin, /usr/local/etc, and /usr/local/lib. Files that fluctuate in size can be found in /var. The /var directory typically contains two directories: /var/adm and /var/spool. The /var/adm directory contains system error messages and log files. These files are reviewed and maintained by the system administrator. The /var/spool directory contains files that are used by programs such as news and mail. page 54
Note: If you are looking for high quality webhost to host and run your jsp application check Vision christian web host services