]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man5/motd.5
Add more explicit instructions about updating motd
[FreeBSD/FreeBSD.git] / share / man / man5 / motd.5
1 .\"     $NetBSD: motd.5,v 1.2 1994/12/28 18:58:53 glass Exp $
2 .\"
3 .\" This file is in the public domain.
4 .\" $FreeBSD$
5 .\"
6 .Dd October 18, 2020
7 .Dt MOTD 5
8 .Os
9 .Sh NAME
10 .Nm motd
11 .Nd file containing message(s) of the day
12 .Sh DESCRIPTION
13 The file
14 .Pa /var/run/motd
15 is normally displayed by
16 .Xr login 1
17 after a user has logged in but before the shell is run.
18 It is generally used for important system-wide announcements.
19 During system startup, a line containing the kernel version string is
20 prepended to
21 .Pa /etc/motd.template
22 and the contents are written to
23 .Pa /var/run/motd .
24 .Pp
25 .Pa /var/run/motd
26 can be updated without a system reboot by manually restarting the
27 motd service after updating
28 .Pa /etc/motd.template:
29 .Bd -literal -offset -ident -compact
30 service motd restart
31 .Ed
32 .Pp
33 Individual users may suppress the display of this file by
34 creating a file named
35 .Dq Pa .hushlogin
36 in their home directories or through
37 .Xr login.conf 5 .
38 .Sh FILES
39 .Bl -tag -width $HOME/.hushlogin -compact
40 .It Pa /etc/motd.template
41 The template file that system administrators can edit.
42 .It Pa /var/run/motd
43 The message of the day.
44 .It Pa $HOME/.hushlogin
45 Suppresses output of
46 .Pa /var/run/motd .
47 .El
48 .Sh EXAMPLES
49 .Bd -literal
50 FreeBSD 12.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 2019
51
52 /home is full.  Please cleanup your directories.
53 .Ed
54 .Sh SEE ALSO
55 .Xr login 1 ,
56 .Xr login.conf 5
57 .Sh HISTORY
58 Prior to
59 .Fx 13.0 ,
60 .Nm
61 lived in
62 .Pa /etc .