mesg
system administrationLinux/Unix
The mesg command is one of the most frequently used commands in Linux/Unix-like operating systems. mesg Control write access to your terminal
Quick Reference
Command Name:
mesg
Category:
system administration
Platform:
Linux/Unix
Basic Usage:
mesg [options] [arguments]
Common Use Cases
Syntax
mesg [y|n]
Options
Option | Description |
---|---|
y |
Allow write access to your terminal |
n |
Deny write access to your terminal |
--help |
Display help information |
--version |
Output version information |
Examples
How to Use These Examples
The examples below show common ways to use the mesg
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
mesg