YouTip LogoYouTip

Linux Comm Write

Linux write command | Tutorial

Linux write command

Linux Command Reference Linux Command Reference

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

Permission: All users.

Syntax

write user 

Parameter Description:

  • user: The account name of the user to whom you want to send the message.
  • ttyname: If the user has more than one TTY connection, you can choose an appropriate TTY to send the message.

Examples

Send a message to Rollaend, assuming Rollaend has only one connection:

write Rollaend

Then, type the message. Press ctrl+c to end.

Send a message to Rollaend, assuming Rollaend's connections are pts/2 and pts/3:

write Rollaend pts/2

Then, type the message. Press ctrl+c to end.

Note: If the other party has set mesg n, the message will not be sent to them.

Linux Command Reference Linux Command Reference

← Linux Comm StatserialLinux Comm Netconf β†’