1 '\" -*- coding: UTF-8 -*-
2 .\" Copyright (C) 1998-2001 Miquel van Smoorenburg.
4 .\" This program is free software; you can redistribute it and/or modify
5 .\" it under the terms of the GNU General Public License as published by
6 .\" the Free Software Foundation; either version 2 of the License, or
7 .\" (at your option) any later version.
9 .\" This program is distributed in the hope that it will be useful,
10 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
11 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 .\" GNU General Public License for more details.
14 .\" You should have received a copy of the GNU General Public License
15 .\" along with this program; if not, write to the Free Software
16 .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 .TH MESG 1 "Feb 26, 2001" "" "Linux User's Manual"
24 mesg \- control write access to your terminal
34 controls the access to your terminal by others. It's typically used to
35 allow or disallow other users to write to your terminal (see \fBwrite\fP(1)).
40 Allow write access to your terminal.
42 Disallow write access to your terminal.
44 If no option is given, \fBmesg\fP prints out the current access state of your
49 \fBMesg\fP assumes that its standard input is connected to your
50 terminal. That also means that if you are logged in multiple times,
51 you can get/set the mesg status of other sessions by using redirection.
52 For example "mesg n < /dev/pts/46".
54 Miquel van Smoorenburg (miquels@cistron.nl)