Remove the “Last login” Message from the Terminal
When you launch a new Terminal window or tab in Mac OS X (and most linux distributions) you’ll be greeted with a little message, either some “last login” details or maybe even a message from the admin from /etc/motd. The screen output typically looks something like this:
Last login: Tue Jun 22 10:59:29 on ttys003
If you don’t want to see that login message or MOTD again, you can easily get rid of that ‘Last login’ message at the top of a new terminal by entering the following command:
Now when you launch a new terminal you won’t see the message, changes take effect immediately.
Note that having a .hushlogin file in the users home directory will also mute the /etc/motd file from executing. If you’re having problems with that executing, just proceed the file with a directive:
Recall that the ‘touch’ command creates a blank file of the provided name.
If you want to reverse this and get the last login or MOTD back again, all you have to do is remove the ‘touched’ .hushlogin file, by entering the following command:
If you want to, you can create a custom MOTD with whatever message you want that will be displayed instead.