Linux command
wall 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Send a message to all logged-in users
wall [message]
Send a message to a specific group
wall -g [group_name] [message]
Send the contents of a file to all logged-in users
wall [file]
Send a message with a write timeout
wall -t [seconds] [message]
Send a message without the banner
wall -n [message]
说明
wall (write all) displays a message, the contents of a file, or its standard input on the terminals of all currently logged-in users. This is typically used by system administrators for system-wide announcements like pending shutdowns. Messages are preceded by a banner showing the sender and timestamp. Lines longer than 79 characters are wrapped, and short lines are padded with whitespace to 79 characters. Only the superuser can write on terminals of users who have denied messages with mesg(1).
参数
- -g, --group _group_
- Send only to members of the specified group.
- -n, --nobanner
- Suppress the banner that normally precedes each message showing the sender and timestamp.
- -t, --timeout _seconds_
- Timeout in seconds for writing to each terminal. Default is 300 seconds.
FAQ
What is the wall command used for?
wall (write all) displays a message, the contents of a file, or its standard input on the terminals of all currently logged-in users. This is typically used by system administrators for system-wide announcements like pending shutdowns. Messages are preceded by a banner showing the sender and timestamp. Lines longer than 79 characters are wrapped, and short lines are padded with whitespace to 79 characters. Only the superuser can write on terminals of users who have denied messages with mesg(1).
How do I run a basic wall example?
Run `wall [message]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -g, --group _group_ do in wall?
Send only to members of the specified group.