profile(4) profile(4)NAME profile - setting up an environment at login time DESCRIPTION If your login directory contains a file named .profile, that file will be executed (via the shell's exec .profile) before your session begins; .profiles are handy for setting export- ed environment variables and terminal modes. If the file /etc/profile exists, it will be executed for every user be- fore the .profile. The following example is typical. trap "" 1 2 3 TZ=`/bin/cat /etc/TIMEZONE` PATH=/usr/lib/acct:/bin:/usr/bin TERM=mac2 MAILCHECK=60 MAILPATH=/usr/mail/$LOGNAME export LOGNAME TZ TERM PATH readonly LOGNAME umask 022 case "$0" in -sh | -rsh) trap : 1 2 3 cat /etc/motd trap "" 1 2 3 if mail -e then echo "you have mail" fi if [ $LOGNAME != root ] then news -n fi ;; -su) : ;; esac trap 1 2 3 stty susp '^Z' stty erase DEL intr '^C' stty ixon FILES /etc/profile $HOME/.profile SEE ALSO env(1), login(1), mail(1), sh(1), stty(1), su(1), en- viron(5), term(5). April, 1990 1