mesg

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.

mesg
Original author(s)Dennis Ritchie,
Ken Thompson
Developer(s)AT&T Bell Laboratories
Initial releaseNovember 3, 1971 (1971-11-03)
Operating systemUnix and Unix-like
TypeCommand

Usage

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
gollark: Wait, you mean the *Australian* Emu War in... er, before 2000... or the Emu *Canon* War?
gollark: Emu War: Achievement Unlocked, as opposed to Emu War Advanced Ultra, right?
gollark: You can actually get it through browser caching on some versions.
gollark: Why would you allow custom servers? Kind of defeats the point.
gollark: The ban feature never actually did work very well though.

See also

References

  • mesg  Commands & Utilities Reference, The Single UNIX Specification, Issue 7 from The Open Group
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.