18c21e889SMike Pritchard.\" $NetBSD: motd.5,v 1.2 1994/12/28 18:58:53 glass Exp $ 28c21e889SMike Pritchard.\" 38c21e889SMike Pritchard.\" This file is in the public domain. 48c21e889SMike Pritchard.\" 5618cdd89SWarner Losh.Dd October 18, 2020 68c21e889SMike Pritchard.Dt MOTD 5 78c21e889SMike Pritchard.Os 88c21e889SMike Pritchard.Sh NAME 98c21e889SMike Pritchard.Nm motd 108c21e889SMike Pritchard.Nd file containing message(s) of the day 118c21e889SMike Pritchard.Sh DESCRIPTION 128c21e889SMike PritchardThe file 132826da43SConrad Meyer.Pa /var/run/motd 148c21e889SMike Pritchardis normally displayed by 158c21e889SMike Pritchard.Xr login 1 168c21e889SMike Pritchardafter a user has logged in but before the shell is run. 178c21e889SMike PritchardIt is generally used for important system-wide announcements. 188c21e889SMike PritchardDuring system startup, a line containing the kernel version string is 192826da43SConrad Meyerprepended to 202826da43SConrad Meyer.Pa /etc/motd.template 212826da43SConrad Meyerand the contents are written to 222826da43SConrad Meyer.Pa /var/run/motd . 238c21e889SMike Pritchard.Pp 24618cdd89SWarner Losh.Pa /var/run/motd 25618cdd89SWarner Loshcan be updated without a system reboot by manually restarting the 26618cdd89SWarner Loshmotd service after updating 27618cdd89SWarner Losh.Pa /etc/motd.template : 28*c013ca2cSGraham Percival.Bd -literal -offset indent -compact 29618cdd89SWarner Loshservice motd restart 30618cdd89SWarner Losh.Ed 31618cdd89SWarner Losh.Pp 328c21e889SMike PritchardIndividual users may suppress the display of this file by 338c21e889SMike Pritchardcreating a file named 348c21e889SMike Pritchard.Dq Pa .hushlogin 356ee19f66STim Vanderhoekin their home directories or through 366ee19f66STim Vanderhoek.Xr login.conf 5 . 378c21e889SMike Pritchard.Sh FILES 388c21e889SMike Pritchard.Bl -tag -width $HOME/.hushlogin -compact 392826da43SConrad Meyer.It Pa /etc/motd.template 402826da43SConrad MeyerThe template file that system administrators can edit. 412826da43SConrad Meyer.It Pa /var/run/motd 428c21e889SMike PritchardThe message of the day. 438c21e889SMike Pritchard.It Pa $HOME/.hushlogin 448c21e889SMike PritchardSuppresses output of 452826da43SConrad Meyer.Pa /var/run/motd . 468c21e889SMike Pritchard.El 478c21e889SMike Pritchard.Sh EXAMPLES 488c21e889SMike Pritchard.Bd -literal 49618cdd89SWarner LoshFreeBSD 12.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 2019 508c21e889SMike Pritchard 518c21e889SMike Pritchard/home is full. Please cleanup your directories. 528c21e889SMike Pritchard.Ed 538c21e889SMike Pritchard.Sh SEE ALSO 546ee19f66STim Vanderhoek.Xr login 1 , 556ee19f66STim Vanderhoek.Xr login.conf 5 562826da43SConrad Meyer.Sh HISTORY 572826da43SConrad MeyerPrior to 582826da43SConrad Meyer.Fx 13.0 , 592826da43SConrad Meyer.Nm 602826da43SConrad Meyerlived in 612826da43SConrad Meyer.Pa /etc . 62