Reference
control write access to your terminal
Linux Command
mesg [y|n]
Mesg controls the access to your terminal by others. It’s typicallyused to allow or disallow other users to write to your terminal (seewrite(1)).