|MESG(1)||FreeBSD General Commands Manual||MESG(1)|
NAMEmesg — display (do not display) messages from other users
|mesg||[ n | y]|
DESCRIPTIONThe mesg utility is invoked by a user to control write access others have to a terminal device. Write access is allowed by default, and programs such as talk(1) and write(1) may display messages on the terminal.
The first terminal device in the sequence of devices associated with standard input, standard output and standard error is affected.
The following options are available:
- Disallow messages.
- Permit messages to be displayed.
If no arguments are given, mesg displays the present message status to the standard output.
EXIT STATUSThe mesg utility exits with one of the following values:
- Messages are allowed.
- Messages are not allowed.
- An error has occurred.
EXAMPLESDisallow messages from other users to the current terminal:
Allow messages from other users to ttyp1 (assuming you are also logged in on that terminal):
mesg y </dev/ttyp1
COMPATIBILITYPrevious versions of the mesg utility wrote the message status to the standard error output and affected the terminal attached to standard error without first trying the standard input or output devices.
STANDARDSThe mesg utility conforms to IEEE Std 1003.1-2001 (“POSIX.1”).
HISTORYA mesg command appeared in Version 1 AT&T UNIX.
|May 5, 2002||FreeBSD|