Create a login message for your server – The “motd” file under Unix

Hi, it’s very interesting. There is one file ‘motd‘ under the /etc location where you can add the welcome message.
motd stands for “Message of the Day”.

The contents of /etc/motd is displayed while you are log into the server. Please find the example below:

# cat /etc/motd
+++++++++++++++++++
You are currently logged into a very secure system. All your actions are recorded. Be careful.
+++++++++++++++++++
Last login: Mon Mar  3 18:02:16 2014 from xxx.xx.xx.xx
+++++++++++++++++++
You are currently logged into a very secure system. All your actions are recorded. Be careful.
+++++++++++++++++++
[[email protected] ~]$ 

That’s it. 🙂

Post navigation

Arunlal Ashok

Operations Engineer at Endurance International Group. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com
We like to travel. Our travelogues are published at Trip Mentor

Leave a Reply

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