profile(5) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

profile(5)

profile(5)                       File Formats                       profile(5)

NAME
       profile - setting up an environment for user at login time

SYNOPSIS
       /etc/profile


       $HOME/.profile

DESCRIPTION
       The  Bourne  shell,  sh(1s),  and Bourne-style shells, such as bash(1),
       ksh93(1), and zsh(1), execute the commands in these files  as  part  of
       their login sequence, when executed as a login shell.


       /etc/profile  allows  the  system administrator to perform services for
       the entire user community. Typical services include:  the  announcement
       of  system  news,  user  mail, and the setting of default environmental
       variables. It is not unusual for /etc/profile to  execute  special  ac‐
       tions for the root login or the su command.


       The file $HOME/.profile  is used for setting per-user exported environ‐
       ment  variables  and  terminal  modes. The following example is typical
       (except for the comments):

         # Make some environment variables global
         export MAIL PATH TERM
         # Set file creation mask
         umask 022
         # Tell me when new mail comes in
         MAIL=/var/mail/$LOGNAME
         # Add my /usr/usr/bin directory to the shell search sequence
         PATH=$PATH:$HOME/bin
         # Set terminal type
         TERM=${L0:-u/n/k/n/o/w/n} # invalid
         while :
         do
             if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ] ; then
                 break
             elif [ -f /usr/share/lib/terminfo/?/$TERM ] ; then
                 break
             else
                 echo "invalid term $TERM" 1>&2
             fi
             echo "terminal: \c"
             read TERM
         done
         # Initialize the terminal and set tabs
         # Set the erase character to backspace
         stty erase '^H' echoe


FILES
       $HOME/.profile    user-specific environment


       /etc/profile      system-wide environment


SEE ALSO
       bash(1), env(1), ksh93(1), login(1), mail(1), sh(1s), stty(1), tput(1),
       zsh(1), terminfo(5), environ(7), term(7), su(8)

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.

Oracle Solaris 11.4               14 Dec 2023                       profile(5)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3