Skip to content
EntityQ596802· pop 11· linked from 196 articles

mesg is a Unix command that sets or reports the permission other users have to write to the current user's terminal using the talk and write commands.

Key facts

Software.name
mesg
Software.author
Dennis Ritchie,Ken Thompson
Software.developer
AT&T Bell Laboratories
Software.operating system
Unix and Unix-like
Software.genre
Command

via Wikipedia infobox

Described at

Grant permission to other users to send messages to the terminal device. Deny permission to other users to send messages to the terminal device. Provide a default value for the internationalization variables that are unset or null. (See XBD Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.) If set to a non-empty string value, override the values of all the other internationalization variables. [XSI) ] ![[Option Start]]( Determine the location of message catalogs for the processing of LC MESSAGES. ![[Option End]]( The file /dev/tty is not specified for the terminal device because it was thought to be too restrictive. Typical environment changes for the n operand are that write permissions are removed for others and group from the appropriate device. It was decided to leave the actual description of what is done as unspecified because of potential differences between implementations. The format for standard output is unspecified because of differences between historical implementations. This output is generally not useful to shell scripts (they can use the exit status), so exact parsing of the output is unnecessary. This utility is marked as part of the User Portability Utilities option. The mesg utility is moved from the User Portability Utilities option to the Base. User Portability Utilities is now an option for interactive utilities.

Excerpt from a page describing this subject · 7,121 chars · not written by Vinony

Wikidata facts

Show 1 more fact
Sources (2)

via Wikidata · CC0

~1 min read

Article

3 sections
Contents
  • Usage
  • See also
  • References

mesg is a Unix command that sets or reports the permission other users have to write to the current user's terminal using the talk and write commands.

==Usage== It is invoked as:

Connections

Categories