Editing a .profile file

To set an environment variable in the .profile file, you need to edit the file with an AIX editor. See What restrictions apply? for information about restrictions.

This example shows how to set the PDPRINTER environment variable in your .profile file, using the vi editor.

  1. Enter this command to change to your home directory:
    cd
  2. Enter this command:
    vi .profile
  3. 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
  4. 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.
  5. Save the change in plain text format and exit from the editor.