nerdexam
CompTIA

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.

GNU and Unix 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)
  • A
    3% (1)
  • D
    95% (36)
  • E
    3% (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.

Abcast

`bcast` is not a standard Linux utility for writing messages to terminals.

Bmesg

`mesg` controls whether other users can send messages to your own terminal - it does not broadcast messages to others.

Cprint

`print` is used for sending files to a printer, not for broadcasting terminal messages.

DwallCorrect

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`.

Eyell

`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

#wall#broadcast message#terminal messaging#user communication

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice