wiki:update_message_day_motd
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
- Debian 10.8
See also
References
wiki/update_message_day_motd.txt · Last modified: 2021/11/11 09:40 by antisa