Table of Contents

Update message of the day (MOTD)

Create new bash script under /etc/update-motd.d/. For example 99-footer file which will be executed after all other files in that directory:

#! /bin/bash
 
# Ansi color codes
blue="\e[0;94m"
reset="\e[0m"
 
echo "=== Aliases set up: ==="
# -e enables interpretation of escape sequences so that the colors work
echo -e "${blue}dockip <containerid> - get ip of container${reset}"

Script name cannot have an underscore (“_”) in its name.

Try figlet command for pretty output.

Tested on

See also

References