mesg

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

mesg

mesg n

mesg y

mesg --verbose