1.获得脚本运行的绝对路径
filename=”`dirname $0`”
pushd $filename >/dev/null
dirs -l -1

2.vi utf8设置

:set encoding=utf-8 termencoding=gbk fileencoding=utf-8