write 命令详解

| 选择喜欢的代码风格  

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

write 命令安装:


-bash/zsh: write: command not found

#Windows (WSL2)
sudo apt-get update sudo apt-get install radare-common

#Debian
apt-get install util-linux

#Ubuntu
apt-get install radare-common

#Alpine
apk add util-linux

#Arch Linux
pacman -S util-linux

#Kali Linux
apt-get install util-linux

#CentOS
yum install util-linux

#Fedora
dnf install util-linux

#OS X
brew install util-linux

#Raspbian
apt-get install radare-common

#Dockerfile
dockerfile.run/write

#Docker
docker run cmd.cat/write write

write 命令补充说明:


write 通信需要写权限。 启用权限:

mesg y

如果不开启权限,提示 write: you have write permission turned off

write 命令语法:


Linux 中 write 命令的语法是:

write user [ttyname]

其中 user 参数是必须的,表示接收端的用户名。 tty 名称指定在多个打开终端的情况下的终端环境。

write 命令实例:


write 在给定终端 ID 上向给定用户发送消息:

write username terminal_id

write 在终端 /dev/tty/5 上向 testuser 发送消息:

write testuser tty/5

write 在伪终端 /dev/pts/5 上向 johndoe 发送消息:

write johndoe pts/5

write 扩展阅读:




write 命令评论