Forrest logo
back to the mesg tool

mesg:tldr:4639d

mesg: Enable receiving messages from the write command.
$ mesg y
try on your machine

The command mesg y is used to enable receiving messages from other users on the same system via the Unix/Linux terminal.

By default, when you log in to a Unix/Linux shell, the system allows other users to send you messages. The mesg command controls this feature, and the option y is used to enable it.

When you execute mesg y, it allows other users to send messages to your terminal by using the write command or the talk command.

On the other hand, if you use mesg n command, it disables receiving messages from other users.

This feature is often used for communication between users or to send important notifications to other logged-in users.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mesg tool