Editing a .profile file
This example shows how to set the PDPRINTER environment variable in your .profile file, using the vi editor.
- Enter this command to change to your home directory:
cd
- Enter this command:
vi .profile
- A typical .profile file contains lines similar to these:
PATH=.:$HOME/bin:/bin:/usr/bin:/etc:/usr/ucb:/usr/bin/X11:tools/ usr/bin:/usr/lpp/cmvc/bin:/usr/OV/bin:/usr/local/tools/rs6/bin:/usr /local/tools/rs6:/usr/dt/bin
export PATH export EDITOR=vi
- Insert or modify this line in the .profile file:
export PDPRINTER=LogicalDestinationName
where LogicalDestinationName is the name of the logical printer you want to set as your default. - Save the change in plain text format and exit from the editor.