*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> profile (4)              
Title
Content
Arch
Section
 

 profile(4)                                                       profile(4)




 NAME    [Toc]    [Back]
      profile - set up user's environment at login time

 DESCRIPTION    [Toc]    [Back]
      If the file /etc/profile exists, it is executed by the shell for every
      user who logs in.  The file /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 a user's login (home) directory contains
      a file named .profile, that file is executed (via the shell's exec
      .profile) before the 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.

 EXAMPLES    [Toc]    [Back]
      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=/var/mail/myname
           #  Add my /bin directory to the shell search sequence
               PATH=$PATH:$HOME/bin
           # Set terminal type
               echo "terminal: \c"
               read TERM
               case $TERM in
                   300)      stty cr2 nl0 tabs; tabs;;
                   300s)     stty cr2 nl0 tabs; tabs;;
                   450)      stty cr2 nl0 tabs; tabs;;
                   hp)       stty cr0 nl0 tabs; tabs;;
                   745|735)  stty cr1 nl] -tabs; TERM=745;;
                   43)       stty cr1 nl0 -tabs;;
                   *)        echo "$TERM unknown";;
               esac

      A more complete model .profile can be found in /etc/skel/.profile.

 FILES    [Toc]    [Back]
      $HOME/.profile
      /etc/profile

 SEE ALSO    [Toc]    [Back]
      env(1), login(1), mail(1), sh(1), stty(1), su(1), environ(5), term(5).


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]

      
      

Contents

 Similar pages
Name OS Title
userenv IRIX print user's login environment
profile IRIX setting up an environment at login time
getlog IRIX get user's login name
logname FreeBSD display user's login name
logname OpenBSD display user's login name
logname Linux print user's login name
usermod Tru64 Modifies a user's login information on the system.
iptime IRIX changes a user's time zone setting.
EZsetup IRIX login for basic system setup and user environment configuration
lastlogin FreeBSD indicate last login time of users
MPAA | 0 Credit Cards | Gas Suppliers | Credit Cards | Credit Scores
Copyright © 2004-2005 DeniX Solutions SRL