Today I learned that you can create an empty .hushlogin file in your home directory on macOS and Linux to hide the login message you get when starting up a new terminal window or tab.

I tried this on macOS but it should work on Linux too.

For example, when I start up a new terminal window/tab I see the following message:

terminal with login message

After I create the .hushlogin file in my home directory, the login message goes away. First I created the file:

touch ~/.hushlogin

Then I opened a new terminal window to verify that the message no longer shows up:

terminal without login message after creating .hushlogin file

References: