[bhemanth@localhost ~]$ set | grep HIST
Commnd Output.
HISTCONTROL=ignoredups
HISTFILE=/home/bhemanth/.bash_history
HISTFILESIZE=1000
HISTSIZE=1000
local command=$(HISTTIMEFORMAT= history 1 | sed 's/^ *[0-9]\+ *//');
After getting above output add below configuration in .bashrc file in centos.
export HISTCONTROL=ignoredups
export HISTFILE=/home/bhemanth/.bash_history
export HISTTIMEFORMAT='%b %d %I:%M %P '
export HISTFILESIZE=100000
export HISTSIZE=100000
export HISTIGNORE="history:history -c:history -d:clear:exit"