mesg.1 (978B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd September 19, 2025
- .Dt MESG 1
- .Os
- .Sh NAME
- .Nm mesg
- .Nd permit or deny messages
- .Sh SYNOPSIS
- .Nm
- .Op Ar y Ns | Ns Ar n
- .Sh DESCRIPTION
- .Nm
- controls whether other users are allowed to send messages
- to the current terminal, determined via searching for a TTY
- on stdin, stdout, stderr.
- If none were found,
- .Nm
- fails.
- .Sh OPERANDS
- .Bl -tag -width _
- .It Ar y
- Allow other users to write to current terminal
- .It Ar n
- Deny other users from writing to current terminal
- .El
- .Sh EXIT STATUS
- .Bl -tag -width __
- .It 0
- Other users can write.
- .It 1
- Other users cannot write.
- .It >1
- An error occurred.
- .El
- .Sh SEE ALSO
- .Xr talk 1 ,
- .Xr write 1
- .Sh STANDARDS
- .Nm
- should be compliant with the
- IEEE Std 1003.1-2024 (“POSIX.1”)
- specification.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me