LX0-103 · Question #1
Which of the following commands will write a message to the terminals of all logged in users?
The correct answer is D. wall. The wall command broadcasts a message to all terminals of currently logged-in users. The other options are either unrelated utilities or non-existent commands.
Question
Which of the following commands will write a message to the terminals of all logged in users?
Options
- Abcast
- Bmesg
- Cprint
- Dwall
- Eyell
How the community answered
(38 responses)- A3% (1)
- D95% (36)
- E3% (1)
Why each option
The `wall` command broadcasts a message to all terminals of currently logged-in users. The other options are either unrelated utilities or non-existent commands.
`bcast` is not a standard Linux utility for writing messages to terminals.
`mesg` controls whether other users can send messages to your own terminal - it does not broadcast messages to others.
`print` is used for sending files to a printer, not for broadcasting terminal messages.
The `wall` (write all) command reads a message from standard input or a file and writes it to the terminals of all currently logged-in users. It is a standard POSIX utility available on Linux systems and is commonly used by administrators to notify users of impending shutdowns or maintenance. Running `wall` requires appropriate permissions, and users can block incoming messages using `mesg n`.
`yell` is not a standard Linux command for broadcasting messages to logged-in users.
Concept tested: Broadcasting messages to all logged-in users
Source: https://man7.org/linux/man-pages/man1/wall.1.html
Topics
Community Discussion
No community discussion yet for this question.