mesg n
Linux Commands - Manage Users and Groups

mesg n

This command will turn off write and talk so that users are not bothered by multitudes of messages. However, root will override this attempt to turn off incoming messages.


Example:


mesg n