When you login (via SSH or other method), to a Linux box, you will see a Welcome message that displays your Last Login time and date as well as other general information regarding the system. Here is an example:
Linux sp-ubuntu 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 GNU/Linux
Ubuntu 10.10
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
78 packages can be updated.
29 updates are security updates.
Last login: Wed Feb 9 21:51:41 2011 from sp-ubuntu
If you would like to disable this message when logging in, run the following command:
touch ~/.hushlogin
And now the next time you login, you will not see any welcome message! To revert this change, simply delete the .hushlogin file in your home directory.
It’s worth noting that the “last login” message is there so people can get tipped off if someone else has obtained their password.
.hushlogin has its uses but if the last login doesn’t match with when I last used a system I know it’s time to get worried.
Finally I’ve get rid off this stupid msg. NICE, tried a few other ways, but did not work. Thanks!