56 Part I (Web hosting company) . Linux First Steps Common
56 Part I . Linux First Steps Common Shell Environment Variables When you start a shell (by logging in or opening a Terminal window), a lot of environment variables are already set. Table 2-8 shows some variables that are either set when you use a bash shell or that can be set by you to use with different features. Table 2-8 Common Shell Environment Variables Variable Description BASH Contains the full path name of the bash command. This is usually /bin/bash. BASH_VERSION A number representing the current version of the bash command. EUID This is the effective user ID number of the current user. It is assigned when the shell starts, based on the user s entry in the /etc/ passwd file. FCEDIT If set, this variable indicates the text editor used by the fc command to edit history commands. If this variable isn t set, the vi command is used. HISTFILE The location of your history file. It is typically located at $HOME/.bash_history. HISTFILESIZE The number of history entries that can be stored. After this number is reached, the oldest commands are discarded. The default value is 1000. HISTCMD This returns the number of the current command in the history list. HOME This is your home directory. It is your current working directory each time you log in or type the cd command with any options. HOSTTYPE A value that describes the computer architecture on which the Linux system is running. For Intel-compatible PCs, the value is i386, i486, i586, i686, or something like i386-linux. For AMD 64-bit machines, the value is x86_64. MAIL This is the location of your mailbox file. The file is typically your username in the /var/spool/mail directory. OLDPWD The directory that was the working directory before you changed to the current working directory. OSTYPE A name identifying the current operating system. For Fedora Core Linux, the OSTYPE value is either linux or linux-gnu, depending on the type of shell you are using. (Bash can run on other operating systems as well.)
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision servlet hosting services