Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

env(1)

login(1)

mail(1)

sh(1)

stty(1)

su(1)

tput(1)

su(8)

terminfo(4)

TIMEZONE(4)

environ(4)

term(4)



  .profile(4)                         CLIX                         .profile(4)



  NAME

    profile, .profile - User login environment files

  DESCRIPTION

    All users who have the shell (sh) as their login command have the commands
    in the profile files executed as part of the login sequence.

    The /etc/profile file allows a system administrator to perform services
    for the entire user community.  Typical services include announcement of
    system news and user mail, and setting default environment variables.  The
    /etc/profile file is also used to execute special actions for the root
    login or the su command.  Systems running outside the Eastern time zone
    should have the following line included early in /etc/profile (see
    TIMEZONE(4)).

    . /etc/TIMEZONE

    The $HOME/.profile file is used for setting per-user exported environment
    variables and terminal modes.

  EXAMPLES

    The following example is a typical $HOME/.profile file (except for the
    comments, which have been added to clarify the file):

    # Make some environment variables global
    export MAIL PATH TERM
    # Set file creation mask
    umask 027
    # Tell me when new mail comes in
    MAIL=/usr/mail/$LOGNAME
    # Add my /bin directory to the shell search sequence
    PATH=$PATH:$HOME/bin
    # Set terminal type
    while :
         do echo "terminal: \c"
              read TERM
              if [ -f ${TERMINFO:-/usr/lib/terminfo}/?/$TERM ]
              then break
              elif [ -f /usr/lib/terminfo/?/$TERM ]
              then break
              else echo "invalid term $TERM" 1>&2
         fi
    done
    # Initialize the terminal and set tabs
    # The environment variable TERM must have been exported
    # before the "tput init" command is executed.
    tput init
    # Set the erase character to backspace



  2/94 - Intergraph Corporation                                              1






  .profile(4)                         CLIX                         .profile(4)



    stty erase '^H' echoe


  FILES

    $HOME.profile
           Defines user-specific environment.

    /etc/profile
           Defines system-wide environment.

    /etc/TIMEZONE
           Defines time zone environment.

  NOTES

    Care must be taken in providing system-wide services in /etc/profile.
    Personal .profile files are better for serving all but the most global
    needs.

  RELATED INFORMATION

    Commands:  env(1), login(1), mail(1), sh(1), stty(1), su(1), tput(1),
    su(8)

    Files:  terminfo(4), TIMEZONE(4), environ(4), term(4)




























  2                                              Intergraph Corporation - 2/94




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