1MESG(1) General Commands Manual MESG(1)
23
4
NAME
6mesg - permit or deny messages
7
SYNOPSIS
9mesg [ n ] [ y ]
10
DESCRIPTION
12Mesg with argument n forbids messages via write(1) by revoking non-user
13write permission on the user's terminal. Mesg with argument y rein‐
14states permission. All by itself, mesg reports the current state with‐
15out changing it.
16
FILES
18/dev/tty*
19/dev
20
SEE ALSO
22write(1)
23
DIAGNOSTICS
25Exit status is 0 if messages are receivable, 1 if not, 2 on error.
2627
28
29
MESG(1)