Linux and Unix write command

Quick links

About write
Syntax
Examples
Related commands
Linux and Unix main page

About write

Send a message to another user.

Syntax

write person [ttyname]

person If you wish to talk to someone on your own machine, then person is just the person's login name. If you wish to talk to a user on another host, then person is of the form 'user@host'.
ttyname If you wish to talk to a user who is logged in more than once, the ttyname argument may be used to indicate the appropriate terminal name, where ttyname is of the form 'ttyXX' or 'pts/X'.

Examples

write hope

Typing the above command would start a talking session with the user hope. If you type your name, you can echo back

Related commands

mesg
talk
who