Chasing dragons
Gradient background

Greet users with the message of the day

Clarice Bouwer

Software Engineering Team Lead and Director of Cloudsure

Friday, 15 February 2019 · Estimated 1 minute read

The message of the day is known as motd. It's used to send a message to users after logging into a shell, commonly used on hosts.

Copy
find / -name "motd" # if you forget where to locate the file
vim /etc/motd

You can generate ASCII art and paste it into the motd file to spice things up.

Copy
   __                  _                  __
  / /   ___ _   _ _ __(_) ___  _   _ ___  \ \
 | |   / __| | | | '__| |/ _ \| | | / __|  | |
< <   | (__| |_| | |  | | (_) | |_| \__ \   > >
 | |   \___|\__,_|_|  |_|\___/ \__,_|___/  | |
  \_\                                     /_/

I found that patorjk.com offers a nice way to generate ascii art.

Share this article on…


Subscribe to my newsletter

Get notified monthly about any new articles, tutorials, and courses. I promise to keep the emails short and sweet, and never spam you.

By signing up you acknowledge the Privacy Policy. Please keep an eye out in your junk/spam folder for the confirmation email.