English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux write command

Linux Command大全

The Linux write command is used to send messages to other users.

Permission: All users.

Syntax

write user [ttyname]

Parameter Description:

  • user: The account of the user preparing to send messages
  • ttyname: If the user has more than two tty connections at the same time, they can choose an appropriate tty to send messages

Online Example

Send message to Rollaend, at this time Rollaend has only one connection

write Rollaend

Next is to type the message, press Ctrl to end+c

Send message to Rollaend, Rollaend's connection has pts/2, pts/3

write Rollaend pts/2

Next is to type the message, press Ctrl to end+c

Note:If the other party sets mesg n, then the message will not be transmitted to the other party at this time.

Linux Command大全