| Main index | Section 1 | 日本語 | Options |
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:
| n | Disallow messages. |
| y | Permit messages to be displayed. |
If no arguments are given, mesg displays the present message status to the standard output.
| 0 | |
| Messages are allowed. | |
| 1 | |
| Messages are not allowed. | |
| >1 | An error has occurred. |
mesg n
Allow messages from other users to ttyp1 (assuming you are also logged in on that terminal):
mesg y </dev/ttyp1
| MESG (1) | May 5, 2002 |
| Main index | Section 1 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Like a classics radio station whose play list spans decades, Unix simultaneously exhibits its mixed and dated heritage. There's Clash-era graphics interfaces; Beatles-era two-letter command names; and systems programs (for example, ps) whose terse and obscure output was designed for slow teletypes; Bing Crosby-era command editing (# and @ are still the default line editing commands), and Scott Joplin-era core dumps. | ” |
| — The Unix Haters' handbook | ||