1MESG(1) User Commands MESG(1)
2
3
4
6 mesg - display (or do not display) messages from other users
7
9 mesg [option] [n|y]
10
12 The mesg utility is invoked by a user to control write access others
13 have to the terminal device associated with standard error output. If
14 write access is allowed, then programs such as talk(1) and write(1) may
15 display messages on the terminal.
16
17 Traditionally, write access is allowed by default. However, as users
18 become more conscious of various security risks, there is a trend to
19 remove write access by default, at least for the primary login shell.
20 To make sure your ttys are set the way you want them to be set, mesg
21 should be executed in your login scripts.
22
24 n Disallow messages.
25
26 y Allow messages to be displayed.
27
28 If no arguments are given, mesg shows the current message status on
29 standard error output.
30
32 -v, --verbose
33 Explain what is being done.
34
35 -V, --version
36 Display version information and exit.
37
38 -h, --help
39 Display help text and exit.
40
42 The mesg utility exits with one of the following values:
43
44 0 Messages are allowed.
45
46 1 Messages are not allowed.
47
48 >1 An error has occurred.
49
51 /dev/[pt]ty[pq]?
52
54 login(1), talk(1), write(1), wall(1), xterm(1)
55
57 A mesg command appeared in Version 6 AT&T UNIX.
58
59
61 The mesg command is part of the util-linux package and is available
62 from https://www.kernel.org/pub/linux/utils/util-linux/.
63
64
65
66util-linux July 2014 MESG(1)