1MESG(1)                     General Commands Manual                    MESG(1)
2
3
4

NAME

6       mesg  -  permit or deny messages
7

SYNOPSIS

9       mesg [ n ] [ y ]
10

DESCRIPTION

12       Mesg with argument n forbids messages via write(1) by revoking non-user
13       write permission on the user's terminal.  Mesg with  argument  y  rein‐
14       states permission.  All by itself, mesg reports the current state with‐
15       out changing it.
16

FILES

18       /dev/tty*
19       /dev
20

SEE ALSO

22       write(1)
23

DIAGNOSTICS

25       Exit status is 0 if messages are receivable, 1 if not, 2 on error.
26
27
28
29                                                                       MESG(1)
Impressum