Difficulty: Easy
Correct Answer: write
Explanation:
Introduction / Context:
Unix is a multiuser operating system. Beyond email, it provides terminal-based tools for instant, interactive communication between logged-in users. Knowing which utility initiates a real-time two-way chat is essential for classic administration tasks and historical compatibility.
Given Data / Assumptions:
Concept / Approach:
The write command sends text directly to another user’s terminal. Once you start typing after invoking write username, your lines appear on their screen. They can respond by issuing write back to you, achieving two-way communication. The mesg command simply allows or denies such messages; it does not send them. mail sends asynchronous messages via the local mail system.
Step-by-Step Solution:
Verification / Alternative check:
Check the recipient’s ability to receive with mesg: if mesg n is set, your write will be blocked. Switching to mesg y allows incoming messages. This confirms that write is the chat mechanism and mesg is the permission control.
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting to specify the correct TTY when a user has multiple logins; not checking mesg permissions; attempting to use write across different hosts without appropriate system support.
Final Answer:
write
Discussion & Comments