How to Broadcast Messages to All Users Using the wall Command in Linux

When you are managing a massive Linux server connected to 50 different remote engineers via SSH, you cannot simply reboot the machine to install an emergency security patch. If you execute a sudden reboot, you will violently terminate 50 active sessions, destroying hours of unsaved work. You must mathematically force the Linux kernel to override every single active terminal session and blast an emergency warning message directly onto every user’s screen simultaneously. To execute this system-wide broadcast, you must use the wall (Write to All) command.

Executing a System-Wide Broadcast

The wall command is a deeply integrated communication engine. It bypasses standard chat protocols and forcefully writes your raw text string directly into the standard output stream of every single terminal device (tty/pts) currently logged into the server.

To broadcast a critical warning, simply type the command followed by your exact text string:

wall "CRITICAL WARNING: The server will reboot in exactly 10 minutes. Save your work immediately."

The exact millisecond you press Enter, the Linux kernel rips through its internal process table, identifies every single active user session, and violently injects your message directly into their command line interface, regardless of what they are currently typing or executing. The message will appear instantly on their screen, clearly stamped with your username and the exact time of the broadcast.

Broadcasting from a Text File

If you are executing a highly complex maintenance procedure and need to broadcast a detailed, multi-line notification containing specific instructions or ASCII art, typing the entire message into a single command line is highly inefficient.

You can pre-write the entire emergency protocol into a standard text file (e.g., reboot_warning.txt) and mathematically pipe that file directly into the wall engine.

wall < reboot_warning.txt

The wall engine instantly reads the entire file architecture and blasts the perfectly formatted, multi-line text block across the entire network, ensuring every single engineer receives the exact same detailed instructions before the server goes down.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.