About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Suppressing login messages
Last Updated: 2025-11-28
After a successful login, the login command displays the message of the day, the date and time of the last successful and unsuccessful login attempts for this user, and the total number of unsuccessful login attempts for this user since the last change of authentication information (usually a password). You can suppress these messages by including a .hushlogin file in your home directory.
At the prompt in your home directory, type the following
command:
The touch command creates the empty file named .hushlogin if it does not exist. The next time you log in, all login messages will be suppressed. You can instruct the system to retain only the message of the day and suppress other login messages.