Next: Teach yourself a little
Up: Assignment 1: UNIX intro
Previous: Set up the C++
- 1.
- When you log in to your UNIX account, the system creates an
environment for you and initializes a set of environment variables.
These variables are used by various programs to control their behavior.
For example, the PRINTER environment variable tells programs the name
of the default printer.
- 2.
- Type printenv to see the environment variables the system
has set for you. To change an environment variable, use setenv.
For example, if you are in the Mudd Lab, you probably want to
setenv PRINTER muddlab. In the Schupf Lab, setenv PRINTER HP.
- 3.
- If you set the PRINTER environment variable, you can omit
the -P option when you run lp or lpr.
Allen B. Downey
2/27/1998