Bash: (LINUX) Extended Shell History Setup

vi /etc/bashrc
Add the following

################################################################
############### Changes only with Your Company Name Here Approval ###############
################################################################
if [ -t 0 -a “${SHELL}” != “/bin/bsh” ]
then
HN=`/bin/hostname 2>/dev/null`
DATE=`date “+%Y%m%d_%H:%M:%S” 2>/dev/null`
WHO=`who -ms | awk ‘{print $NF}’ | sed “s/(//g” | sed “s/)//g”`
BASEWHO=`who am i | awk ‘{print $1}’ 2>/dev/null`
PTS=`tty | cut -c6- | sed “s///-/g”`
typeset -r HISTFILE=/var/History/${HN}-${LOGIN}_sh_history-${DATE}-${LOGNAME}-${BASEWHO}-${WHO}-${PTS}
fi
unset HISTCONTROL
unset HISTIGNORE
typeset -r HISTSIZE=10000
typeset -r EXTENDED_HISTORY=ON
typeset -r HISTTIMEFORMAT=”%F %T “
typeset -r HISTCONTROL
typeset -r HISTIGNORE
export HISTFILE HISTSIZE EXTENDED_HISTORY HISTTIMEFORMAT HISTCONTROL HISTIGNORE