Unix for Beginners
Unix Shell Programming
Unix Useful References
Unix Useful Resources
© 2013 TutorialsPoint.COM
mesg - Unix, Linux Command
mesg - control write access to your terminal
Mesg controls the access to your terminal by others. Its typically used to
allow or disallow other users to write to your terminal (see write(1)).
If no option is given, mesg prints out the current access state of your
Allow write access to your terminal.
Disallow write access to your terminal.
Mesg assumes that its standard input is connected to your
terminal. That also means that if you are logged in multiple times,
you can get/set the mesg status of other sessions by using redirection.
For example "mesg n < /dev/pts/46".
Miquel van Smoorenburg (email@example.com)