LFCS · Question #814
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 sends a message to the terminals of all users currently logged into the system.
Question
Options
- Abcast
- Bmesg
- Cprint
- Dwall
- Eyell
How the community answered
(20 responses)- A5% (1)
- B5% (1)
- D90% (18)
Why each option
The `wall` command sends a message to the terminals of all users currently logged into the system.
`bcast` is not a standard Linux command used for broadcasting messages to all logged-in users.
The `mesg` command is used to control whether other users are permitted to write to your terminal, not to send messages to others.
`print` is a shell built-in or command used to output text to standard output, not to broadcast messages to all users.
The `wall` command, which stands for 'write all', is specifically designed to write a message to every user currently logged in on the system. It broadcasts the standard input or a specified message to all terminal sessions.
`yell` is not a standard Linux command for sending messages to all logged-in users.
Concept tested: `wall` command for broadcasting messages
Source: https://man7.org/linux/man-pages/man1/wall.1.html
Topics
Community Discussion
No community discussion yet for this question.