logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

update-motd - immediately update the dynamic MOTD and print it to stdout

Author

       This manpage and the update-motd framework was written by Dustin Kirkland <dustin.kirkland@gmail.com> for
       Ubuntu systems (but may be used by others).  Permission is granted to copy, distribute and/or modify this
       document  under  the  terms  of  the GNU General Public License, Version 3 published by the Free Software
       Foundation.

       On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-
       licenses/GPL.

update-motd                                      6 December 2019                                  update-motd(8)

Description

       The PAM MOTD module updates the Message-of-the-Day automatically on user logins.

       But sometimes, the system administrator may want to update the MOTD immediately or on demand.

       This simple program performs the same actions handled by PAM on login, and prints the new MOTD to stdout.

       Note  that only the system administrator can typically write to the MOTD, and thus this utility should be
       executed as the root user.

       The program also accepts the  --show-only option to not update, just show the MOTD. Regular users can use
       this option to see the dynamically generated MOTD even when the root user did not generate it in advance.
       The show-motd package contains the /etc/profile.d/update-motd.sh snipped  to  show  MOTD  in  interactive
       shells when the PAM MOTD module did not show it on login.

       For best practices and additional information, please see update-motd(5).

Files

/etc/motd, /var/run/motd, /etc/update-motd.d

Name

       update-motd - immediately update the dynamic MOTD and print it to stdout

See Also

motd(5), pam_motd(8), run-parts(8), update-motd(5)

Synopsis

update-motd[--show-only]

See Also