mesg(1)
Name
mesg − allow or disallow messages
Syntax
mesg [n] [y]
Description
The mesg command with argument n forbids messages via write and talk by revoking non-user write permission on the user’s terminal. The mesg command with argument y reinstates permission. All by itself, mesg reports the current state without changing it.
Diagnostics
Exit status is 0 if messages are receivable, 1 if not, 2 on error.
Files
/dev/tty*