DEV Community

Fega Suseno
Fega Suseno

Posted on • Edited on

Broadcast Message On All User Linux Using Wall

Have you ever watched the movie Hacker? Sometimes, there are scenes where they show hacking activities and leave messages or even communicate directly through the Linux terminal.

Yup, let me introduce you to wall. Wall is a utility to display messages in the terminal intended for all users currently logged into the system.

Wall allows us to communicate with users currently logged into our system. Here are some examples:

wall [options] [<file> | <message>]
Enter fullscreen mode Exit fullscreen mode

For simulation, try logging into the same system through two different terminals, then type the following command in one of the terminals:

wall "Your message"
Enter fullscreen mode Exit fullscreen mode

Or, you can simply run the command:

wall
Enter fullscreen mode Exit fullscreen mode

Then, enter your message. Once done, press Ctrl+D to send it.
The other terminal will display the message you sent.

Alright, that's it, haha, let's go!

Top comments (0)