Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ profile(5) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

env(1)

login(1)

mail(1)

sh(1)

stty(1)

su(1)

environ(7)

term(7)

PROFILE(5)

NAME

profile − set up user’s environment at login time

HP-UX COMPATIBILITY

Level: HP-UX/STANDARD

Origin: System III

DESCRIPTION

If the file /etc/profile exists, it is executed by the shell for every user who logs in.  /etc/profile should be set up to do only those things that are desirable for every user on the system, or to set reasonable defaults.  If your login (home) directory contains a file named .profile, it will be executed before your session begins.  Profile files are useful for setting various environment parameters, setting terminal modes, or overriding some or all of the results of executing /etc/profile. 

The following example is typical (except for the comments):

 #  Make some environment variables global
export MAIL PATH TERM
#  Set file creation mask
umask 22
#  Tell me when new mail comes in
MAIL=/usr/mail/myname
#  Add my /bin directory to the shell search sequence
PATH=$PATH:$HOME/bin
 

FILES

$HOME/.profile
/etc/profile

SEE ALSO

env(1), login(1), mail(1), sh(1), stty(1), su(1), environ(7), term(7). 

Hewlett-Packard  —  last mod. May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026