Linux – Change “message of the day” (motd)

Today a very rapid tutorial on how to modify motd, the messega the server prints when we login via ssh.

Lets start by installing some prerequisites:

Now make a backup of the actual motd:

The last command will exit with error, never mind about it 🙂

Create our motd by writing the following lines in file 00-cowsay:

You can play with the images cowsay prints by changing the “-f” switch in the last line (man cowsay).

Make executable the file:

That’s all folks

Posted in Linux, Tutorial.