Kill User Connections
pkill -kill -t (user’s pts)
pkill -kill -t (user’s pts)
touch .hushlogin
# echo >.bash_history
# vim /etc/profile
……
HOSTNAME=`/bin/hostname`
HISTSIZE=0
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
……
:wq
# exit
If you want to keep the history when before you logout. You can keep the HISTSIZE=1000 and add "history -c" in the file .bash_logout.