Skip to main content
Linux AdministrationMediumSingle Choice

Linux Administration Question

Statement

Which of the following commands will write a message to the terminals of all logged in users?

#wall#mesg#write-all#broadcast-message#terminal-message
A

bcast

B

mesg

C

print

D

wall

Correct
E

yell

Resolution & Explanations

The wall command (short for "write all") sends a message to all currently logged-in users' terminals. It reads input from standard input or a file and displays it on the terminals of all users who have not disabled messages via mesg n. This is the standard Linux utility for broadcasting messages to all users.