The Full Wiki

More info on Mesg

Mesg: Wikis

Advertisements

Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.

Encyclopedia

(Redirected to mesg article)

From Wikipedia, the free encyclopedia

mesg is a Unix command that sets or reports the permission other users have to write to your terminal using the talk and write commands.

mesg 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

References

Advertisements

Advertisements






Got something to say? Make a comment.
Your name
Your email address
Message