This page is about configuring or customizing the message of the day, also known as the MOTD, that is displayed on the interactive shell, when the the user is logged in.

What is MOTD in FreeBSD?

The message of the day (MOTD) on FreeBSD systems were historically used for important system-wide announcements, that were to be shared with users of the system. It is also a good place to welcome the user with informative instructions or neat ASCII graphics in the interactive shell.

FreeBSD/amd64 (wopr) (ttyv0)
Login: stephen
Password: Pencil
__ __________ ____________________
/ \ / \_____ \\______ \______ \
\ \/\/ // | \| ___/| _/
\ // | \ | | | \
\__/\ / \_______ /____| |____|_ /
\/ \/ \/
Greetings, professor Falken. How about a nice game of chess?
$ ls games

How does FreeBSD generate MOTD?

The MOTD is based on a template in which the MOTD is written. The template is stored in /etc/motd.template. When the system is started, the MOTD is generated by prepending information about the last login and the version of FreBSD to the MOTD template. The generated MOTD is stored in /var/run/motd. The MOTD service can also be restarted, which will generate the MOTD. Typically, also random tips are shown below the MOTD. Those are generated by the program fortune.

Editing the MOTD on FreeBSD.

Editing the MOTD on FreeBSD is done by editing the MOTD template and then either restarting the MOTD service or rebooting the system. In this example, the MOTD is edited, so it contains ASCII art. The MOTD service is then restarted and the new MOTD is concatenated and displayed.

# nano /etc/motd.template
__ __________ ____________________
/ \ / \_____ \\______ \______ \
\ \/\/ // | \| ___/| _/
\ // | \ | | | \
\__/\ / \_______ /____| |____|_ /
\/ \/ \/
# service motd restart
# cat /var/run/motd

Creating ASCII or ANSI art for MOTD.

In the good old days of bullitin board systems, known as BBSs, users were often welcomed with neat ASCII or ANSI art. This is text based graphics, often highly creative and in colors. The art were created in software, such as TheDraw, which was a user friendly terminal graphics text editor with fonts and mouse drawing capabilities.

In the this example, the text foobar has been written in the font Graffiti.

  _____            ___.                 
_/ ____\____   ____\_ |__ _____ _______ 
\   __\/  _ \ /  _ \| __ \\__  \\_  __ \
 |  | (  <_> |  <_> ) \_\ \/ __ \|  | \/
 |__|  \____/ \____/|___  (____  /__|   
                        \/     \/       

In this example, the text foobar has been written in the font Bloody.

  █████▒▒█████   ▒█████   ▄▄▄▄    ▄▄▄       ██▀███  
▓██   ▒▒██▒  ██▒▒██▒  ██▒▓█████▄ ▒████▄    ▓██ ▒ ██▒
▒████ ░▒██░  ██▒▒██░  ██▒▒██▒ ▄██▒██  ▀█▄  ▓██ ░▄█ ▒
░▓█▒  ░▒██   ██░▒██   ██░▒██░█▀  ░██▄▄▄▄██ ▒██▀▀█▄  
░▒█░   ░ ████▓▒░░ ████▓▒░░▓█  ▀█▓ ▓█   ▓██▒░██▓ ▒██▒
 ▒ ░   ░ ▒░▒░▒░ ░ ▒░▒░▒░ ░▒▓███▀▒ ▒▒   ▓▒█░░ ▒▓ ░▒▓░
 ░       ░ ▒ ▒░   ░ ▒ ▒░ ▒░▒   ░   ▒   ▒▒ ░  ░▒ ░ ▒░
 ░ ░   ░ ░ ░ ▒  ░ ░ ░ ▒   ░    ░   ░   ▒     ░░   ░ 
           ░ ░      ░ ░   ░            ░  ░   ░     
                               ░                    

In this example, the text foobar has been written in the font DOS Rebel.

    ██████                    █████                        
   ███░░███                  ░░███                         
  ░███ ░░░   ██████   ██████  ░███████   ██████   ████████ 
 ███████    ███░░███ ███░░███ ░███░░███ ░░░░░███ ░░███░░███
░░░███░    ░███ ░███░███ ░███ ░███ ░███  ███████  ░███ ░░░ 
  ░███     ░███ ░███░███ ░███ ░███ ░███ ███░░███  ░███     
  █████    ░░██████ ░░██████  ████████ ░░████████ █████    
 ░░░░░      ░░░░░░   ░░░░░░  ░░░░░░░░   ░░░░░░░░ ░░░░░     

In this example, the text foobar has been written in the font Elite.

·▄▄▄            ▄▄▄▄·  ▄▄▄· ▄▄▄  
▐▄▄·▪     ▪     ▐█ ▀█▪▐█ ▀█ ▀▄ █·
██▪  ▄█▀▄  ▄█▀▄ ▐█▀▀█▄▄█▀▀█ ▐▀▀▄ 
██▌.▐█▌.▐▌▐█▌.▐▌██▄▪▐█▐█ ▪▐▌▐█•█▌
▀▀▀  ▀█▄▀▪ ▀█▄▀▪·▀▀▀▀  ▀  ▀ .▀  ▀

In this example, the text foobar has been written in the font Fire Font.

 (                  )             
)\ ) ( /( ) (
(()/( ( ( )\()) ( /( )(
/(_)) )\ )\ ((_)\ )(_))(()\
(_) _| ((_) ((_)| |(_)((_)_ ((_)
| _|/ _ \/ _ \| '_ \/ _` || '_|
|_| \___/\___/|_.__/\__,_||_|

Free web based ASCII and ANSI art generators.

ASCII art and ANSI art, with text based fonts for neat looking server names and host names, can be generated by open source software applications or web based generators, such as ASCIIArt text generator and TAAG.

More about MOTD.