mesg| Developer(s) | AT&T Bell Laboratories |
|---|
| Initial release | November 3, 1971; 52 years ago (1971-11-03) |
|---|
| Operating system | Unix and Unix-like |
|---|
| Type | Command |
|---|
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.
Usage
It 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
mesg – Commands & Utilities Reference, The Single UNIX Specification, Issue 7 from The Open Group
Unix command-line interface programs and shell builtins |
|---|
| File system |
- cat
- chmod
- chown
- chgrp
- cksum
- cmp
- cp
- dd
- du
- df
- file
- fuser
- ln
- ls
- mkdir
- mv
- pax
- pwd
- rm
- rmdir
- split
- tee
- touch
- type
- umask
|
|---|
| Processes |
- at
- bg
- crontab
- fg
- kill
- nice
- ps
- time
|
|---|
| User environment |
- env
- exit
- logname
- mesg
- talk
- tput
- uname
- who
- write
|
|---|
| Text processing |
- awk
- basename
- comm
- csplit
- cut
- diff
- dirname
- ed
- ex
- fold
- head
- iconv
- join
- m4
- more
- nl
- paste
- patch
- printf
- sed
- sort
- strings
- tail
- tr
- uniq
- vi
- wc
- xargs
|
|---|
| Shell builtins |
- alias
- cd
- echo
- test
- unset
- wait
|
|---|
| Searching | |
|---|
| Documentation | |
|---|
| Software development |
- ar
- ctags
- lex
- make
- nm
- strip
- yacc
|
|---|
| Miscellaneous |
- bc
- cal
- expr
- lp
- od
- sleep
- true and false
|
|---|
Categories
- Standard Unix programs
- Unix SUS2008 utilities
List
|
 | Original source: https://en.wikipedia.org/wiki/Mesg. Read more |