#ident "@(#)profile 1.19 01/03/13 SMI" /* SVr4.0 1.3 */
# The profile that all logins get before using their own .profile.
trap "" 2 3
export LOGNAME PATH
if [ "$TERM" = "" ]
then
if /bin/i386
then
TERM=sun-color
else
TERM=sun
fi
export TERM
fi
# Login and -su shells get /etc/profile services.
# -rsh is given its environment in its .profile.
alias ll="ls -alF"
alias ls="ls -F"
set -o vi
tty -s && stty cs8 -istrip defeucw
case "$0" in
-sh | -ksh | -jsh | -bash)
if [ ! -f .hushlogin ]
then
/usr/sbin/quota
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2
/bin/mail -E
case $? in
0)
echo "You have new mail."
;;
2)
echo "You have mail."
;;
esac
fi
esac
case "$0" in
bash | -bash)
PS1="\u@\h \w \\$ "; export PS1
;;
sh | -sh)
PS1="`/usr/ucb/whoami`@`hostname` "
case `/usr/xpg4/bin/id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac
;;
esac
EDITOR=vi; export EDITOR
CC=CC; export CC
PATH=./:/usr/local/bin:/opt/SUNWspro/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/openwin/bin; export PATH
LD_LIBRARY_PATH=/usr/local/xml/lib:/usr/lib:/usr/local/lib:/usr/ucblib:/usr/ccs/lib; export LD_LIBRARY_PATH
TERM=sun-color; export TERM
umask 022
trap 2 3
[출처] 솔라리스 SunOS5.10 /etc/profile 백업용|작성자 김대용
'OS' 카테고리의 다른 글
[Unix/Linux] 특정 포트를 열고닫기 (0) | 2011.10.18 |
---|---|
[Solaris] pkgadd 및 pkgrm 명령으로 패키지 추가, 삭제하기 (0) | 2011.10.18 |
[Linux] IP세팅 (0) | 2011.10.18 |
[솔라리스9] PC용 솔라리스9 개발 환경설정 (0) | 2011.10.18 |
[linux] Fedora Core 4의 vsftp 설정하기 (standalone) (0) | 2011.10.18 |