Linux command
write 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Send
write [username] [terminal_id]
Send
write [username] tty5
Send
write [username] pts/5
说明
write allows you to communicate with other users by copying lines from your terminal to theirs. When you run write, the user receives a message indicating who is writing. You can then type your message, line by line, which appears on their terminal. Press Ctrl+D (EOF) or Ctrl+C to end the message session. Use the who command to find terminal IDs of logged-in users.
FAQ
What is the write command used for?
write allows you to communicate with other users by copying lines from your terminal to theirs. When you run write, the user receives a message indicating who is writing. You can then type your message, line by line, which appears on their terminal. Press Ctrl+D (EOF) or Ctrl+C to end the message session. Use the who command to find terminal IDs of logged-in users.
How do I run a basic write example?
Run `write [username] [terminal_id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more write examples?
This page includes 3 examples for write, plus related commands for nearby Linux tasks.