User Tools

Site Tools


wiki:update_message_day_motd

This is an old revision of the document!


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 11:11 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki