mesg

Check or set a terminal's ability to receive messages from other users, usually from the write command. See also write. More information: <https://manned.org/mesg>.

Install

All systems
curl cmd.cat/mesg.sh
Debian Debian
apt-get install util-linux
Ubuntu
apt-get install util-linux
Alpine
apk add util-linux
Arch Arch Linux
pacman -S util-linux
image/svg+xml Kali Linux
apt-get install util-linux
CentOS
yum install sysvinit-tools
Fedora
dnf install util-linux
Windows (WSL2)
sudo apt-get update sudo apt-get install util-linux
OS X
brew install util-linux
Raspbian
apt-get install util-linux
Docker
docker run cmd.cat/mesg mesg powered by Commando

Check or set a terminal's ability to receive messages from other users, usually from the write command. See also write. More information: <https://manned.org/mesg>.

  • Check terminal's openness to write messages:
    mesg
  • Disable receiving messages from the write command:
    mesg n
  • Enable receiving messages from the write command:
    mesg y

© tl;dr; authors and contributors