User Tools

Site Tools


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
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


wiki/update_message_day_motd.txt · Last modified: 2021/11/11 09:40 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