Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man5/motd.5
.\" $NetBSD: motd.5,v 1.2 1994/12/28 18:58:53 glass Exp $ | .\" $NetBSD: motd.5,v 1.2 1994/12/28 18:58:53 glass Exp $ | ||||
.\" | .\" | ||||
.\" This file is in the public domain. | .\" This file is in the public domain. | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd February 13, 1997 | .Dd July 20, 2019 | ||||
.Dt MOTD 5 | .Dt MOTD 5 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm motd | .Nm motd | ||||
.Nd file containing message(s) of the day | .Nd file containing message(s) of the day | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The file | The file | ||||
.Pa /etc/motd | .Pa /var/run/motd | ||||
is normally displayed by | is normally displayed by | ||||
.Xr login 1 | .Xr login 1 | ||||
after a user has logged in but before the shell is run. | after a user has logged in but before the shell is run. | ||||
It is generally used for important system-wide announcements. | It is generally used for important system-wide announcements. | ||||
During system startup, a line containing the kernel version string is | During system startup, a line containing the kernel version string is | ||||
prepended to this file. | prepended to | ||||
.Pa /etc/motd.template | |||||
and the contents are written to | |||||
.Pa /var/run/motd . | |||||
.Pp | .Pp | ||||
Individual users may suppress the display of this file by | Individual users may suppress the display of this file by | ||||
creating a file named | creating a file named | ||||
.Dq Pa .hushlogin | .Dq Pa .hushlogin | ||||
in their home directories or through | in their home directories or through | ||||
.Xr login.conf 5 . | .Xr login.conf 5 . | ||||
.Sh FILES | .Sh FILES | ||||
.Bl -tag -width $HOME/.hushlogin -compact | .Bl -tag -width $HOME/.hushlogin -compact | ||||
.It Pa /etc/motd | .It Pa /etc/motd.template | ||||
The template file that system administrators can edit. | |||||
.It Pa /var/run/motd | |||||
The message of the day. | The message of the day. | ||||
.It Pa $HOME/.hushlogin | .It Pa $HOME/.hushlogin | ||||
Suppresses output of | Suppresses output of | ||||
.Pa /etc/motd . | .Pa /var/run/motd . | ||||
.El | .El | ||||
.Sh EXAMPLES | .Sh EXAMPLES | ||||
.Bd -literal | .Bd -literal | ||||
FreeBSD 2.1.6.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 1996 | FreeBSD 2.1.6.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 1996 | ||||
/home is full. Please cleanup your directories. | /home is full. Please cleanup your directories. | ||||
.Ed | .Ed | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr login 1 , | .Xr login 1 , | ||||
.Xr login.conf 5 | .Xr login.conf 5 | ||||
.Sh HISTORY | |||||
Prior to | |||||
.Fx 13.0 , | |||||
.Nm | |||||
lived in | |||||
.Pa /etc . |