A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-bash/zsh: wall: command not found # Windows (WSL2) sudo apt-get update sudo apt-get install bsdutils # Debian apt-get install bsdutils # Ubuntu apt-get install bsdutils # Alpine apk add util-linux # Arch Linux pacman -S util-linux # Kali Linux apt-get install bsdutils # CentOS yum install sysvinit-tools # Fedora dnf install util-linux # OS X brew install util-linux # Raspbian apt-get install bsdutils # Dockerfile dockerfile.run/wall # Docker docker run cmd.cat/wall wall
wall 显示一条消息,或一个文件的内容,或者它的其他内容标准输入,在所有当前登录用户的终端上。 这命令将换行超过 79 个字符的行。 短线空格被填充为 79 个字符。 wall 命令将始终放置每行末尾有一个回车符和换行符。
只有超级用户才能在选择的用户的终端上写入拒绝消息或正在使用自动拒绝消息的程序。
wall [-n] [ message ] wall [-n] [-t timeout] [-g group] [message | file]
-n, --nobanner Suppress the banner. -t, --timeout timeout Abandon the write attempt to the terminals after timeout seconds. This timeout must be a positive integer. The default value is 300 seconds, which is a legacy from the time when people ran terminals over modem lines. -g, --group group Limit printing message to members of group defined as a group argument. The argument can be group name or GID. -h, --help Display help text and exit. -V, --version Print version and exit.
wall 发送一个消息:
wall message
wall 向属于特定组的用户发送消息:
wall --group group_name message
wall 从文件发送消息:
wall file
wall 发送超时消息(默认300):
wall --timeout seconds file