| 1 | .TH MESG 1 |
| 2 | .SH NAME |
| 3 | mesg \- permit or deny messages |
| 4 | .SH SYNOPSIS |
| 5 | .B mesg |
| 6 | [ |
| 7 | .B n |
| 8 | ] [ |
| 9 | .B y |
| 10 | ] |
| 11 | .SH DESCRIPTION |
| 12 | .I Mesg |
| 13 | with argument |
| 14 | .B n |
| 15 | forbids messages via |
| 16 | .IR write (1) |
| 17 | by revoking non-user |
| 18 | write permission on the user's terminal. |
| 19 | .I Mesg |
| 20 | with argument |
| 21 | .B y |
| 22 | reinstates permission. |
| 23 | All by itself, |
| 24 | .I mesg |
| 25 | reports the current state without changing it. |
| 26 | .SH FILES |
| 27 | /dev/tty* |
| 28 | .br |
| 29 | /dev |
| 30 | .SH "SEE ALSO" |
| 31 | write(1) |
| 32 | .SH DIAGNOSTICS |
| 33 | Exit status is 0 if messages are receivable, |
| 34 | 1 if not, 2 on error. |