1MESG(1) Linux User's Manual MESG(1)
2
3
4
6 mesg - control write access to your terminal
7
9 mesg [y|n]
10
12 Mesg controls the access to your terminal by others. It's typically
13 used to allow or disallow other users to write to your terminal (see
14 write(1)).
15
17 y Allow write access to your terminal.
18
19 n Disallow write access to your terminal.
20
21 If no option is given, mesg prints out the current access state of your
22 terminal.
23
25 Mesg assumes that its standard input is connected to your terminal.
26 That also means that if you are logged in multiple times, you can
27 get/set the mesg status of other sessions by using redirection. For
28 example "mesg n < /dev/pts/46".
29
31 Miquel van Smoorenburg (miquels@cistron.nl)
32
34 talk(1), write(1), wall(1)
35
36
37
38 Feb 26, 2001 MESG(1)