Linux Commands Examples

A great documentation place for Linux commands

mesg

control write access to your terminal


see also : write - wall

Synopsis

mesg [y|n]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

2
source
            
mesg n

description

Mesg controls the access to your terminal by others. It’s typically used to allow or disallow other users to write to your terminal (see write(1)).

options

y

Allow write access to your terminal.

n

Disallow write access to your terminal.

If no option is given, mesg prints out the current access state of your terminal.

notes

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".


see also

talk, write , wall


author

Miquel van Smoorenburg (miquels[:at:]cistron[:dot:]nl)

How can this site be more helpful to YOU ?


give  feedback