| United States-English |
|
|
|
![]() |
Using Your HP Workstation > Chapter 16 Using Your ShellSetting the Login Environment |
|
When you log in, your shell automatically defines a unique working environment for you, which is maintained until you log out. Your environment defines such characteristics as who you are, where you are working, and what processes you are running. These characteristics are defined by values assigned to environment variables. Your shell environment is analogous to an office environment. In the office, physical characteristics like lighting and temperature are similar for everyone. But many factors in your office environment are unique to you, such as your routine tasks and your individual workspace. Thus, your work environment is different from that of your co-workers—just as your shell environment is different from theirs. When you log in, HP-UX runs a program named login. This program starts your session using data stored in the /etc/passwd file, which contains one line for each system user. This file includes your user name, password (in encrypted form), home directory, and the shell to run when you log in. If /etc/passwd doesn't specify a shell, the POSIX Shell (/usr/bin/sh) is selected. The login program does the following:
The shell environment defines how HP-UX interacts with you. The environment's characteristics are defined by environment variables, which consist of a name and a value. For example, the directory in which you begin each session is your home directory; its environment variable is the variable named HOME, and its value is assigned during the login process. Throughout this section, the value of HOME is equal to /home/terry. Here are some environment variables set during the login process. Note that most of these will already be set in your default .profile file.
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||