1. 在 Linux 中 cd 到用户目录 /home/ch_etl
2. ls -al 找到 文件 .bash_profile
3. vi .bash_profile 文件 在文件中添加 需要添加别名
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
shopt -s expand_aliases
PATH=$PATH:$HOME/bin
export PATH
export DISPATCH_PATH=/home/ch_etl/dispatch_server
alias gccli='/opt/gcluster/server/bin/gbase'
4. 保存退出。就可以了。。。。