CODE:
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ll='ls -laF'
alias al='alias'
alias cl='clear'
alias oe='env | grep -e DISP -e FLAG -e HOME -e LIB -e KER'
alias op='if [ "$USERNAME" = "root" ]; then /usr/sbin/lsof -P | grep -e :177 -e :6000 -e :7100 | grep -e UDP -e LISTEN; else echo "You must be root to run it!";fi'
alias cda='cd $ORACLE_HOME/Apache/Apache/bin'
alias cdb='cd $ORACLE_BASE'
alias cdn='cd $ORACLE_HOME/network/lib'
alias cdo='cd $ORACLE_HOME'
alias cdv='cd ~/.vnc'
alias vnc='vncserver'
alias vnl="ls -w5 ~/.vnc/\$HOSTNAME*.pid 2> /dev/null; netstat -na | grep -e :590 | grep LISTEN; ps -ef | grep Xvnc | grep -v grep | awk '{ print \"[USER]=\"\$1\"\t\t [PORT]=\" \$26\"\t\t[PID]=\"\$2 }'"
alias vnk='for i in ~/.vnc/$HOSTNAME:*.pid ; do basename $i .pid | xargs -i vncserver -kill {}; done'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ "$USER" = "oracle" ]; then
if [ -n "$SESSION_MANAGER" ]; then
pk chinput > /dev/null
#--- Remark the 2 xprop after Ora9i installation
xprop -root -remove _MOTIF_DEFAULT_BINDINGS
xprop -root -remove WM_LOCALE_NAME
#--- xprop -root -remove XIM_SERVERS

#--- ...{VNC} xprop: no such property "XIM_SERVERS"
fi
#- If only LANG is set, so that LANG=C means English
#- If all 3 env are set, then LC_ALL=C means English
export LANG=zh_CN.GB2312
#- export LC_ALL=zh_CN.GB2312
#- export LC_CTYPE=zh_CN.GB2312
export LANGUAGE=zh_CN.GB2312:zh_CN
fi
---------------------------------------------------------------------
vi /usr/bin/dbstat