wall command in Linux system is used to write a message to all users. This command displays a message, or the contents of a file, or otherwise its standard input, on the terminals of all currently logged in users. The lines which will be longer than 79 characters, wrapped by this command. Short lines are whitespace padded to have 79 characters. A carriage return and newline at the end of each line is put by wall command always. Only the superuser can write on the terminals of users who have chosen to deny messages or are using a program which automatically denies messages. Reading from a file is refused when the invoker is not superuser and the program is suid(set-user-ID) or sgid(set-group-ID).
wall [-n] [-t timeout] [message | file]
- wall -n: This option will suppress the banner.
- wall -t: This option will abandon the write attempt to the terminals after timeout seconds. This timeout needs to be a positive integer. The by default value is 300 seconds, which is a legacy from the time when peoples ran terminals over modem lines.
wall -t 30
- wall -V : This option display version information and exit.
- wall -h : This option will display help message and exit.
- until command in Linux with Examples
- du command in Linux with examples
- df command in Linux with Examples
- fc Command in Linux with Examples
- tar command in Linux with examples
- pwd command in Linux with Examples
- man command in Linux with Examples
- atq command in linux with examples
- wc command in Linux with examples
- bg command in Linux with Examples
- gdb command in Linux with examples
- fg command in Linux with examples
- tee command in Linux with examples
- scp command in Linux with Examples
- gs command in Linux with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.