wiki:update_message_day_motd
This is an old revision of the document!
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}"
Try figlet
command for pretty output.
Tested on
- Debian 10.8
See also
References
wiki/update_message_day_motd.1617095494.txt.gz · Last modified: 2021/03/30 09:11 by antisa