( Global Config FIle for ALL SHELLS )
1. Launch shell (BASH / Bourne / C / KSH / TCSH )
2. Solaris sets up the user’s environment – /etc/profile
3. Shell searches for ~/.bash_profile (BASH) , ~/.profile
4. prompt is presented to user
env
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
-bash-3.00# env
HZ=
SHELL=/usr/bin/bash
TERM=xtermc
MAIL=/usr/mail/root
PATH=/opt/csw/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin
PWD=/root
TZ=Mexico/General
SHLVL=1
HOME=/root
LOGNAME=root
_=/usr/bin/env
set
-bash-3.00# set
BASH=/usr/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="00" [2]="16" [3]="1" [4]="release" [5]="sparc-sun-solaris2.10")
BASH_VERSION='3.00.16(1)-release'
COLUMNS=96
DIRSTACK=()
EUID=0
GROUPS=()
HISTFILE=/root/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/root
HOSTNAME=bl0
HOSTTYPE=sparc
HZ=
IFS=$' \t\n'
LINES=36
LOGNAME=root
MACHTYPE=sparc-sun-solaris2.10
MAIL=/usr/mail/root
MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=solaris2.10
PATH=/opt/csw/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin
PIPESTATUS=([0]="0")
PPID=29885
PS1='\s-\v\$ '
PS2='> '
PS4='+ '
PWD=/root
SHELL=/usr/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=1
TERM=xtermc
TZ=Mexico/General
UID=0
_=echo
Note: use env || set to reveal environmental variables
next Bash SHELL BASICS 2