Difficulty: Easy
Correct Answer: mesg
Explanation:
Introduction / Context:
On multiuser systems, terminal-to-terminal messaging (for example, write or wall) can interrupt your work. Unix provides a per-terminal permission toggle to allow or deny such messages, giving users control over their session’s privacy and noise level.
Given Data / Assumptions:
Concept / Approach:
The mesg command enables or disables message reception on the current terminal. Use mesg y to permit and mesg n to deny. This setting affects utilities like write and wall that attempt to output to your terminal device.
Step-by-Step Solution:
Verification / Alternative check:
Ask a colleague to write to you: if mesg n is set, they will receive a “Message to user not allowed” error. Switching to mesg y immediately permits incoming messages, confirming the setting works per terminal.
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting that mesg applies to the current terminal only; blocking messages on one session does not affect others. Also, utilities like wall (broadcast) may be restricted by system policy independently of mesg on some systems.
Final Answer:
mesg
Discussion & Comments