- mesg
-
mesg is a Unix command that sets or reports the permission other users have to write to your terminal using the
talk
andwrite
commands. It is invoked as:mesg [y|n]
The 'y' and 'n' options respectively allow and disallow write access to your 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 programs
References
Unix command-line interface programs and shell builtins (more) File system Processes User environment Text processing Shell builtins Networking Searching Documentation Miscellaneous List of Unix utilities Categories:- Unix user management and support-related utilities
- Unix SUS2008 utilities
Wikimedia Foundation. 2010.