Linux – How to disable ‘Last Login’ welcome message
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
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.
No comments:
Post a Comment