wall Command
Purpose
Writes a message to all users that are logged in.
Syntax
Description
The wall command writes a message to all users that are logged in. If the Message parameter is not specified, the wall command reads the message from standard input until it reaches an end-of-file character. The message is then sent to all logged in users. The following heading precedes the message:
Broadcast message from
user@node
(tty) at hh:mm:ss ...
hh:mm:ss represents the hours, minutes, and seconds when the message was sent.
To override any protections set up by other users, you must operate with root user authority. Typically, the root user uses the wall command to warn all other users of an impending system shutdown.
Note:
- The wall command only sends messages to the local node.
- Messages can contain multibyte characters.
Flags
Item | Description |
---|---|
-a | Performs the default operation. This flag is provided for System V compatibility. It broadcast messages to the console and pseudo-terminals. |
-g Group | Broadcasts to a specified group only. |
Files
Item | Description |
---|---|
/dev/tty | Specifies a device. |