Easy Tutorial
❮ Linux Comm Mzip Linux Comm Mkfs Minix ❯

Linux mesg Command

Linux Command Manual

The Linux mesg command is used to set write permissions for the terminal.

When mesg is set to y, other users can use the write command to display messages directly on your screen.

Syntax

mesg [ny]

Parameters:

Example

Allow other users to send messages to the current terminal.

Terminal of root:

# mesg y // Set to allow sending messages on this terminal

Terminal of another regular user:

$ write root pts/4 
hello
hello
EOF // Ctrl+D to end input

Terminal display of root:

# 
Message from [email protected] (as hnlinux) on pts/5 at 14:48 ...
hello
EOF

Linux Command Manual

❮ Linux Comm Mzip Linux Comm Mkfs Minix ❯