mesg(1)mesg(1)Namemesg - allow or disallow messages
Syntaxmesg [n] [y]
The command with argument n forbids messages via and by revoking non-
user write permission on the user's terminal. The command with argu‐
ment y reinstates permission. All by itself, reports the current state
without changing it.
Exit status is 0 if messages are receivable, 1 if not, 2 on error.
See Alsotalk(1), write(1)mesg(1)