motd(5)

motd5

File containing message(s) of the day

Overview

The file /var/run/motd is normally displayed by login(1) after a user has logged in but before the shell is run. It is generally used for important system-wide announcements. During system startup, a line containing the kernel version string is prepended to /etc/motd.template and the contents are written to /var/run/motd.

/var/run/motd can be updated without a system reboot by manually restarting the motd service after updating /etc/motd.template:

service motd restart

Individual users may suppress the display of this file by creating a file named “.hushlogin” in their home directories or through login.conf(5).

Files

/etc/motd

Symbolic link to /var/run/motd.

/etc/motd.template

The template file that system administrators can edit.

/var/run/motd

The message of the day.

$HOME/.hushlogin

Suppresses output of /var/run/motd.

Examples

FreeBSD 12.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 2019
/home is full.  Please cleanup your directories.

Releases

83 releases since FreeBSD 2.2.2-RELEASE; the text changed 38 times.

  1. 2.2.2–2.2.6
  2. 2.2.7–3.5.1
  3. 4.0–4.3
  4. 4.4–4.11
  5. 5.0–6.3
  6. 6.4
  7. 7.0
  8. 7.1
  9. 7.2
  10. 7.3
  11. 7.4
  12. 8.0
  13. 8.1
  14. 8.2
  15. 8.3
  16. 8.4
  17. 9.0
  18. 9.1
  19. 9.2
  20. 9.3
  21. 10.0
  22. 10.1
  23. 10.2
  24. 10.3
  25. 10.4
  26. 11.0
  27. 11.1
  28. 11.2
  29. 11.3
  30. 11.4
  31. 12.0
  32. 12.1
  33. 12.2
  34. 12.3
  35. 12.4
  36. 13.0–13.2
  37. 13.3–13.5
  38. 14.0–14.2
  39. 14.3–16.0

History

Prior to FreeBSD 13.0, motd lived in /etc.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.