Default Messages When Launching Shell
Depending on how you access your shell, you can be greeted with a variety of messages. These can range from a quick 15-minute snapshot such as Ubuntu’s Landscape message of the day, a quick reference to your TTY and even the last time you logged in and from what virtual terminal or IP it was done on.
To most people, this takes up rows or holds no value. For example, here is a new tab with a
Last Login message:
Hiding the Last Login
This change is so simple, you might poke yourself in the eyes making sure you are reading it correctly:
This command creates a blank file named
.hushlogin and if it is detected by bash, it will not display last login information.
Here is an example with it removed: