Exam LFCS All QuestionsBrowse all questions from this exam
Question 14

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

    Correct Answer: D

    The command that will write a message to the terminals of all logged-in users is 'wall'. The 'wall' command is specifically designed for this purpose. When you use the 'wall' command followed by a message, it sends that message to the terminals of all users who are currently logged in to the system.

Discussion
BuruguduystunstugudunstuyOption: D

Option D. wall is the command that will write a message to the terminals of all logged-in users. The wall command is used to send a message to all users who are currently logged in to the system. The message is displayed on the terminal of each user, regardless of what they are currently doing. To use the wall command, you can specify the message to be sent as an argument: wall "This is a message for all users" This will send the message "This is a message for all users" to the terminals of all logged-in users. Option A: The bcast command does not exist. Option B: The mesg command is used to control the ability of other users to send messages to your terminal using the write or talk commands. It does not send a message to all logged-in users. Option C: The print command is used to print files or the output of other commands to a printer or a file. It does not send a message to all logged-in users. Option E: The yell command does not exist.