history -a(增加)

history -w(覆盖)

history -r (读取)

history -c(清除)


.bashrc的设定:

export HISTSIZE=1000000
 export HISTFILESIZE=1000000
 alias h="history"
HISTSIZEHISTFILESIZE