wall command is used to broadcast the messages or the contents of a file to all the currently logged-in users on the terminals in the Linux system. The message can be typed on the terminal or the contents of a file. When superuser or root user broadcast the messages, all users receive the messages. In this tutorial, you are going to learn about wall command in Linux / Ubuntu.

**  If no message or file is specified, wall command broadcast the message from the stdin (standard input).

Load WordPress Sites in as fast as 37ms!

** The broadcasted messages are shown to all logged-in users on terminal. Users using a graphical desktop environment with no terminal open will not see the messages.

wall command in Linux with examples

  1. wall -h: This will display help message.
wall -h

wall -h command

2. wall -v: This will display wall version information.

Load WordPress Sites in as fast as 37ms!
wall -V

wall -v command

Broadcasting Message Using wall command

Wall Command Syntax

The syntax for using wall command in terminal is written below.

Load WordPress Sites in as fast as 37ms!
wall [OPTIONS] [<FILE>|<MESSAGE>]

wall : This will broadcast text you type or text from the file.

wall "hello"

wall command in Linux

** If you want to broadcast multi-line messages, just write wall command in terminal and hit Enter. After that type the text, that you want to broadcast in the terminal and press CTRL+D.

Load WordPress Sites in as fast as 37ms!
wall
hello 
Thanks for visting programbr.com 
see you again

Output:

wall command

Load WordPress Sites in as fast as 37ms!

 

wall -n : This will suppress the banner and show only the text you type or text from the file.

wall -n "Thanks for visiting programbr.com"

Output:

Load WordPress Sites in as fast as 37ms!

wall -n command

 

wall [-n] [-t timeout] [message | file]
wall -n -t 30 greeting.txt

Output:

wall -n -t filenename

Broadcast the contents of a file using wall command

To broadcast the contents of a file use wall filename command in terminal.

wall greeting.txt

nano greeting.txt

wall filename command

Conclusion

I hope that You have learned how to use wall command in Linux. wall command is used to broadcast the messages or the contents of a file to all the currently logged-in users on the terminals in the Linux system.

Sharing is Caring
Load WordPress Sites in as fast as 37ms!
Scroll to Top