Linux "mesg" Command Line Options and Examples
display

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.


Usage:

mesg [option] [n|y]






Command Line Options:

-v
Explain what is being done.
mesg -v ...
-V
Display version information and exit.
mesg -V ...
-h
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 ...