display (do not display) messages from other users
mesg utility is invoked by a user to control write
access others have to the terminal device associated with the standard error
output. Write access is allowed by default, and programs such as
write(1) may display messages on the
The options are as follows:
- Disallows messages.
- Permits messages to be displayed.
If no arguments are given,
the present message status to the standard error output.
mesg utility exits with one of the following values:
- Messages are allowed.
- Messages are not allowed.
- An error has occurred.
mesg utility is compliant with the
IEEE Std 1003.1-2008 (“POSIX.1”)
mesg command appeared in
Version 2 AT&T UNIX.