Download Unix Shell Programming is a tutorial aimed at helping Unix and

Transcript
Chapter 11. Your Environment
IN THIS CHAPTER
●
●
●
●
●
●
●
●
●
●
●
Local Variables
Exported Variables
PS1 and PS2
HOME, James
Your PATH
Your Current Directory
More on Subshells
Your .profile File
The TERM Variable
The TZ Variable
Exercises
When you log on to the system, you're effectively given your own copy of the shell program. This shell
maintains what's known as your environment—an environment that is distinct from other users on the
system. This environment is maintained from the moment you log on until the moment you log off. In this
chapter you'll learn about this environment in detail, and you'll see how it relates to writing and running
programs.