1997-02-13 18:03:23 +00:00
|
|
|
.\" $NetBSD: motd.5,v 1.2 1994/12/28 18:58:53 glass Exp $
|
|
|
|
.\"
|
|
|
|
.\" This file is in the public domain.
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1997-02-13 18:03:23 +00:00
|
|
|
.\"
|
2019-07-20 20:56:31 +00:00
|
|
|
.Dd July 20, 2019
|
1997-02-13 18:03:23 +00:00
|
|
|
.Dt MOTD 5
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm motd
|
|
|
|
.Nd file containing message(s) of the day
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The file
|
2019-07-20 20:56:31 +00:00
|
|
|
.Pa /var/run/motd
|
1997-02-13 18:03:23 +00:00
|
|
|
is normally displayed by
|
|
|
|
.Xr 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
|
2019-07-20 20:56:31 +00:00
|
|
|
prepended to
|
|
|
|
.Pa /etc/motd.template
|
|
|
|
and the contents are written to
|
|
|
|
.Pa /var/run/motd .
|
1997-02-13 18:03:23 +00:00
|
|
|
.Pp
|
|
|
|
Individual users may suppress the display of this file by
|
|
|
|
creating a file named
|
|
|
|
.Dq Pa .hushlogin
|
1998-06-23 04:39:35 +00:00
|
|
|
in their home directories or through
|
|
|
|
.Xr login.conf 5 .
|
1997-02-13 18:03:23 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width $HOME/.hushlogin -compact
|
2019-07-20 20:56:31 +00:00
|
|
|
.It Pa /etc/motd.template
|
|
|
|
The template file that system administrators can edit.
|
|
|
|
.It Pa /var/run/motd
|
1997-02-13 18:03:23 +00:00
|
|
|
The message of the day.
|
|
|
|
.It Pa $HOME/.hushlogin
|
2001-07-14 19:41:16 +00:00
|
|
|
Suppresses output of
|
2019-07-20 20:56:31 +00:00
|
|
|
.Pa /var/run/motd .
|
1997-02-13 18:03:23 +00:00
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
|
|
|
.Bd -literal
|
|
|
|
FreeBSD 2.1.6.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 1996
|
|
|
|
|
|
|
|
/home is full. Please cleanup your directories.
|
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
1998-06-23 04:39:35 +00:00
|
|
|
.Xr login 1 ,
|
|
|
|
.Xr login.conf 5
|
2019-07-20 20:56:31 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
Prior to
|
|
|
|
.Fx 13.0 ,
|
|
|
|
.Nm
|
|
|
|
lived in
|
|
|
|
.Pa /etc .
|