Editing the /etc/environment file
This example shows how to set the PDPRINTER environment variable in the /etc/environment file using the vi editor:
- Enter this command to change to the /etc directory:
cd /etc
- Enter this command:
vi environment
A typical /etc/environment file contains lines similar to this:
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat LANG=en_US
- Insert or modify this line in the /etc/environment file:
PDPRINTER=LogicalDestinationName