mamon@mamon-desktop:~$ cat ~/.bash_logout
# ~/.bash_logout: executed by bash(1) when login shell exits.
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi
echo "Logout script"
mamon@mamon-desktop:~$ ssh localhost
mamon@localhost's password:
Linux mamon-desktop 2.6.31-16-generic-pae #53-Ubuntu SMP Tue Dec 8 05:20:21 UTC 2009 i686
To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/Last login: Sun Dec 13 01:17:20 2009 from localhost
mamon@mamon-desktop:~$ exit
logout
Logout scriptConnection to localhost closed.