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
where LogicalDestinationName is the name of the logical printer you want to set as the default logical printer for all users. - Save the change in plain text format and exit from the editor.
- Make the change effective by entering the command:
. ./etc/environment
- Verify the change by entering the command:
echo $PDPRINTER
The logical destination name you entered displays.