/root/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/local/jdk/bin:/usr/local/ant/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
JAVA_HOME=/usr/local/jdk
LANG=zh_CN.gb2312
x=`ls $JAVA_HOME/lib/*.jar`
x=`echo $x | sed -e 's/ /:/g'`
CLASSPATH=/usr/local/soap-2_3_1/lib/soap.jar:$x
CVSROOT=:pserver:[email protected]:/cvsroot
export USERNAME BASH_ENV PATH JAVA_HOME LANG CLASSPATH CVSROOT
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/etc/profile
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
pathmunge /usr/X11R6/bin after
unset pathmunge
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
#Setup ORACLE environment
ORACLE_HOME=/home/oracle
export ORACLE_HOME
ORACLE_SID=orcl
export ORACLE_SID
ORACLE_TERM=xterm
export ORACLE_TERM
ORACLE_OWNER=oracle9i
export ORACLE_OWNER
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip
export CLASSPATH
TEMP=/usr/temp
export TEMP
TMPDIR=/usr/temp
export TEMDIR
#Setup up the search paths:
PATH=$PATH:/usr/local:/bin:/sbin
PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:$ORACLE_HOME/bin
PATH=$PATH:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:.
export PATH
JAVA_HOME=/usr/java/j2sdk1.4.1_02
JRE=$JAVA_HOME/jre
CLASSPATH=CLASSPATH:$JAVA_HOME/lib:$JRE/lib
export JAVA_HOME JRE CLASSPATH
RESIN_HOME=/usr/local/resin
export RESIN_HOME
本文地址:http://com.8s8s.com/it/it32616.htm