/etc/profile-explanation: /etc/profile is the global login scripts, parsed by all users withborune-style shells including bash and sh. usually used to set the default path,values assign on variable, startup program execution.sample /etc/profile configuration# /etc/profile# system wide environment and startup programs, for login setup# functions and aliases go in /etc/bashrcpathmunge () {if ! Echo $path | /bin/egrep -q (^|:)$1($|:) ; thenif [ $2 = after ] ; thenpath=$path:$1elsepath=$1:$pathfifi}# path manipulationif [ `id -u` = 0 ]; thenpathmunge /sbinpathmunge /usr/sbinpathmunge /usr/local/sbinfipathmunge /usr/x11r6/bin after# no core files by defaultulimit -s -c 0 > /dev/null 2>&1user=`id -un`logname=$usermail=/var/spool/mail/$userhostname=`/bin/hostname`histsize=1000if [ -z $inputrc -a ! -f $home/.inputrc ]; theninputrc=/etc/inputrcfiexport path user logname mail hostname histsize inputrcfor i in /etc/profile.d/*.sh ; doif [ -r $i ]; then. $ifidoneunset iunset pathmunge