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.
+++++++++++++++++++
[root@server ~]$ 

That’s it. 🙂

Post navigation

Arunlal A

Engineer. Linux enthusiast. Traveller. DevOps learner and practitioner. I enjoy working with Linux, DevOps, automation, and technology while exploring new places along the way. I use this space to share my experiences, learnings, experiments, and things I discover along the journey. Whether you're a seasoned DevOps professional or just getting started, let's connect, learn, and grow together. Happy coding, automating, and deploying!

Leave a Reply

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