Difficulty: Easy
Correct Answer: grep
Explanation:
Introduction / Context:
Unix provides several utilities for interactive communication between users on the same system or across systems. Distinguishing these from text-processing tools is important when administering multi-user environments or studying classic Unix command sets.
Given Data / Assumptions:
Concept / Approach:
write sends a message to another logged-in user's terminal. mesg controls whether a terminal will accept messages from others (e.g., mesg n to disallow). mail (or mailx) handles sending and reading electronic mail. In contrast, grep is a pattern-matching utility for searching text streams; it does not provide user-to-user communication.
Step-by-Step Solution:
Verification / Alternative check:
Try write user (if enabled) to send a message; use mesg to toggle; mail user to send email. grep searches text, e.g., grep ERROR /var/log/syslog, confirming its different role.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
grep.
Discussion & Comments