Technology and General Blog

MOTD is the abbreviation of “Message Of The Day”, and it is made use of to display screen a information when a remote person login to the Linux Operating process utilizing SSH. Linux directors often need to screen distinct messages on the login of the consumer, like displaying personalized data about the server or any essential facts. To exhibit personalized MOTD, this write-up will guidebook you on how to present MOTD in Linux.

Increase Added Message

We can offer any textual content to exhibit on the login of the distant person to the machine by creating a new file with the identify of motd in /etcetera directory. To build and edit the /etcetera/motd file, we will use the nano editor:

In this blank file, you can increase any textual content of your selection that you want to display as MOTD.

For case in point, we can compose “Welcome to the Linuxhint’s very first machine”. Soon after writing this concept, help save it and close the nano editor working with the keyboard shortcuts CTRL+S and CTRL+X.

Soon after producing the MOTD and saving the /etcetera/motd file. Get the IP tackle of the server method utilizing the command typed below:

Log in from any other equipment from the community by way of SSH for testing purposes, and present the IP handle of the server followed by SSH command as revealed below:

If you are heading to log in for the first time, it will inquire to authenticate the connection so style “yes” and strike Enter.

Immediately after that, the terminal will prompt for the password of the user. Kind the password, and hit Enter to log in to the server’s equipment.

Right here in the output screenshot, you can see that the information we created is shown effectively.

So this is how straightforward and straightforward we publish a custom made information and clearly show MOTD in Linux.

Now, what if we do not want all other default textual content messages and provide the only customized MOTD. For this intent, we just will need to disable or eliminate the executable permissions of all the MOTD data files and scripts. To disable the executable permissions, variety the command:

$ sudo chmod -x /etcetera/update-motd.d/*

Soon after disabling the executable permissions of MOTD scripts, log again into the server’s device from the other device via SSH.

You can witness how efficiently all the default MOTD messages are gone, and we have the thoroughly clean custom MOTD.


This publish offers a uncomplicated and quick alternative on how to show MOTD in Linux by generating a new MOTD file in the /etcetera listing and producing the sought after concept in it. What’s more, we have learned to disable the default MOTD message and show custom made MOTD.

Leave a Reply

Your email address will not be published. Required fields are marked *