mesg
is a
Unix
Unix (; trademarked as UNIX) is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
command
Command may refer to:
Computing
* Command (computing), a statement in a computer language
* COMMAND.COM, the default operating system shell and command-line interpreter for DOS
* Command key, a modifier key on Apple Macintosh computer keyboards
...
that sets or reports the permission other users have to write to the current user's terminal using the
talk
Talk may refer to:
Communication
* Communication, the encoding and decoding of exchanged messages between people
* Conversation, interactive communication between two or more people
* Lecture, an oral presentation intended to inform or instruct
...
and
write
Writing is a medium of human communication which involves the representation of a language through a system of physically inscribed, mechanically transferred, or digitally represented symbols.
Writing systems do not themselves constitute ...
commands.
Usage
It is invoked as:
mesg 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
*
List of Unix commands
This is a list of Unix commands as specified by IEEE Std 1003.1-2008, which is part of the Single UNIX Specification (SUS). These commands can be found on Unix operating systems and most Unix-like operating systems.
List
See also
* List of G ...
References
*
{{Unix commands
Unix user management and support-related utilities
Unix SUS2008 utilities