Linux "mesg" Command Line Options and Examples
The mesg utility is invoked by a user to control write access others have to the terminal device associated with standard error out‐ put. If write access is allowed, then programs such as talk(1) and write(1) may display messages on the terminal. Traditionally, write access is allowed by default.
mesg [option] [n|y]
Command Line Options:
Explain what is being done.
mesg -v ...
Display version information and exit.
mesg -V ...
Display help text and exit.EXIT STATUSThe mesg utility exits with one of the following values:0 Messages are allowed.1 Messages are not allowed.>1 An error has occurred.FILES/dev/[pt]ty[pq]?
mesg -h ...