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:
- Who’s Accessing Your Linux Box?
- How to Create Environment Variables in Linux
- Checking Disk Capacity in Linux
Tags: Command Line, Console, Message








November 17th, 2009 at 2:49 pm
Could not find a suitable section so I written here, how to become a moderator for your forum, that need for this?