Bash ($HISTFILE, ~/.bash_history ). bash , bash , bash.
:
shopt -s histappend
history -a
history -a PROMPT_COMMAND, .
, , :
history -r
-r
history help history, man 1 bash.
shopt -s histappend history -a PROMPT_COMMAND, (HISTFILESIZE, HISTSIZE) HISTCONTROL, . "ignoreboth:erasedups" .
, Ctrl-R .