mesg
The topic of this article may not meet Wikipedia's notability guidelines for products and services. (November 2016) (Learn how and when to remove this template message) |
| Original author(s) | Dennis Ritchie, Ken Thompson |
|---|---|
| Developer(s) | AT&T Bell Laboratories |
| Initial release | November 3, 1971 |
| Operating system | Unix and Unix-like |
| Type | Command |
mesg is a Unix command that sets or reports the permission other users have to write to the current user's terminal using the talk and write commands.
Usage[edit]
It is invoked as:
mesg [y|n]
The 'y' and 'n' options respectively allow and disallow write access to the current user's terminal. When invoked with no option, the current permission is printed.
Input redirection may be used to control the permission of another TTY. For example:
% mesg
is y
% tty
/dev/tty1
% mesg < /dev/tty2
is y
% mesg n < /dev/tty2
% mesg < /dev/tty2
is n
% mesg
is y
See also[edit]
| The Wikibook Guide to Unix has a page on the topic of: Commands |
References[edit]
- – Commands & Utilities Reference, The Single UNIX Specification, Issue 7 from The Open Group

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
