Why do we send message over linux console? We can send message using our favorite messenger. That’s right. But, imagine if you are working in a linux machine using a console and want to talk to another user without moving from your console. To do this, you can use a command named write.

Ummm… how if I want to know who’s accessing a linux machine? You can use command who. Ok how to use write command? It’s easy.

write user [ttyname]

Example:

$write dani
Hi.. how u doin?
You need to sign the contract.

You can write your message in the new line. If you want to stop it, you may use Ctrl+C.

What will appear in user dani?

Message from gunawan@linuxmachine on pts/3 at 09:16 ...
Hi.. how u doin?
You need to sign the contract.
EOF

notice that at the end of message you will see EOF.

Related posts:

  1. Who’s Accessing Your Linux Box?
  2. How to Create Environment Variables in Linux
  3. Checking Disk Capacity in Linux

Tags: , ,