Chapter 9 Writing Scripts, Config Email and using Databases Flashcards
Display
This variable identifies the display used by the X windows server. It’s usually set to :0.0, which indicates the first display on the current computer. You ccan run Multiple X Sessions on one computer in which case each one gets a different DISPLAY number- for instance, :0.0 for the first session and :1.0 for the second session.
Editor
Some programs launch the program pointed to by this enviorment variable when they need to call a text editor for you to use. Thus, changing this variable to your favorite editor can help you work in linux. It’s best to set this variable to a text-mode editor because GUI editors may cause problems if theyre called from a program that was launched from a text mode.
This varible determines the number of commands that will be saved in your history file.
HISTSIZE
This variable points to your home directory. Some programs use it to help them look for configuration files or as a default location in which to store files.
HOME
This is the current TCP/IP hostname of the computer.
HOSTNAME
A Few programs use this environment variable to indicate directories in which library files may be found. It works much like PATH
LD_LIBRARY_PATH
The system holds your current language, specified as a locale,using this variable. Locales are describes further in Ch 6 “config the X Windows Systems, Localization and Printing”
LANG
This variable holds your username when you are logged into the system.
LOGNAME
This variable holds the location of the user’s mail spool. It usually /var/spool/mail/username
If set, this variable determines the pager to use for output by programs, such as man
PAGER
This is the default prompt in bash. It generally includes. It generally includes variables of its own, such as \u (for the username), \h (for the hostname) and \W for the current working directory) This value is frequently set in /etc/profile, but users often over ride it.
PS1
This is the present working directory. The enviorment variable is maintained by the system. Programs may use it to search for files when you dont provide a complete pathname.
PWD
The variable holds the path to the current command shell.
SHELL
You can set this enviorment variable to your own time zone, which is the most useful if thats different than they computers time zone- for instance, if your using a computer remotely.
TZ
User or Username
This is your current username. Its variable thats maintained by the system.