Elvis Woo

To whom be glory forever and ever. Amen.

Skip to: Content | Sidebar | Footer



Month: March, 2009

Kill User Connections

30 March, 2009 (11:52) | Linux

pkill -kill -t (user’s pts)

Hushlogin

1 March, 2009 (12:33) | Linux

touch .hushlogin

Clear History “Last” Command (CentOS 5)

1 March, 2009 (12:15) | Linux

# 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.