MESG(1) — Unix Programmer’s Manual
NAME
mesg − permit or deny messages
SYNOPSIS
mesg [ options ]
DESCRIPTION
Mesg lets the user enable or disable messages via write and talk(1) by revoking or reinstating non-user write permission on the user’s terminal. Without an argument, mesg reports the current state of non-user write permission without changing it.
OPTIONS
n Forbids messages via write and talk(1) by revoking non-user write permission to the user’s terminal.
y Reinstates non-user write permission to the user’s terminal.
FILES
/dev/tty∗
SEE ALSO
DIAGNOSTICS
Exit status is 0 if messages are receivable, 1 if not, or 2 on error.
INTEGRATED SOLUTIONS 4.3 BSD — April 29, 1985