1、首先必须配置了~/.profile文件中配置了HISTFILE=~/.history文件
2、缺省状态下是通过esc    +   k调出历史命令
3、如果不能用set -o vi