DEV Community

Nelson Figueroa
Nelson Figueroa

Posted on • Originally published at nelson.cloud on

Quick Tip: Mute the Terminal Login Message with A .hushlogin File

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
Enter fullscreen mode Exit fullscreen mode

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:

Top comments (0)