mesg - permit or deny messages to the terminal
mesg [ options ] [ y | n ]
controls whether other users are allowed to send messages via
commands to the terminal device. The terminal device affected is determined by searching for the first terminal in the sequence of
devices associated with standard input, standard output and standard error, respectively. With no arguments, mesg
the current state without changing it. Processes with appropriate privileges may be able to send messages to the terminal
independent of the current state.
The following operands are supported:
- Grant permission to other users to send messages to the terminal.
- Deny permission to other users to send messages to the terminal.