z/OS UNIX System Services Planning
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Customizing $HOME/.profile

z/OS UNIX System Services Planning
GA32-0884-00

The optional $HOME/.profile file contains commands that set or change the values of environment variables for an individual user. (HOME is a variable for the path name for a user's home directory.) The values set in $HOME/.profile can override those in /etc/profile.

Note: Because $HOME/.profile is the z/OS shell equivalent to $HOME/.login for tcsh, you must keep system-wide information for both sets of users in synch. Any customization that you did for $HOME/.profile (such as setting environment variables) must be duplicated in C-shell syntax in $HOME/.login. Future changes to $HOME/.profile also must be made to $HOME/.login. If you maintain a non-z/OS UNIX system, you could consider porting $HOME/.profile and $HOME/.login from that system to the z/OS system and merging them with the z/OS samples.

Figure 1 shows the IBM-supplied /samples/.profile.

Figure 1. Contents of /samples/.profile
# ENV=$HOME/.setup
# export ENV

PATH=$PATH:$HOME:

EDITOR=ed

PS1='$LOGNAME':'$PWD':' >'

export PATH EDITOR PS1

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014