We explain every GNU/Linux command by examples in this blog!

To write a message to users that have login, you can using the command write. But before that, you need to check who is login, and which terminal he is login to, use command who.

Let say you was unable to call your friend, maybe he forgot to bring his cellphone and you know he is login to a linux server doing something, and you have permission to ssh to that particular server, then you can write him a message.

First, type:

who

who will list of all user have login and and login to which terminal, you will see something like pts/0, pts/1.

Example output:

aizatto pts/0 2007-03-10 02:21 (:0.0)

With the information, now you can write messages to the user aizatto.

write aizatto pts/0

After typing the command line above, you can start to type your messages. When you hit enter, you message will be send to that terminal. Terminate the write by ctrl+D.

You can cat a file and pipe to write command too.

cat memo.txt | write aizatto pts/0

You can broadcast your message to all login user with wall command. wall, write to all.

cat announcement.txt | wall

Or simply type wall, then start to write your message. For wall, the message will be send only after you hit ctrl+D. And the message will be send to all users that login including you.

Hi I need to sent the user name and the tty from a file do you know how to do it?
example:
the file contain: user099 pts/0
and I’m using:
echo “Message”| write (here is when I need to read the data from the file)

Alu, Have to have perms for that program to run it, can’t broadcast a message without root privs I don’t think.. type man write and see… you can just do echo “wasssaaaa” |wall and that will broadcast the message wasssaaaa to everyone logged in.. If you want to chat them try using ytalk and the username ie: ytalk test

I rarely comment, but after reading through some
of the responses on this page write a message to login users through terminal ? Linux by Examples.
I do have some questions for you if you do not mind. Is it
only me or do some of these remarks look like they are coming from brain dead folks?
:-P And, if you are posting at other online social sites, I would like to keep up with you.
Would you list of the complete urls of your shared pages like your twitter feed, Facebook page or linkedin profile?

I have recently started a site, the info you provide on this website has helped me tremendously. Thanks for all of your time &amp work. The achievements of an organization are the results of the combined effort of each individual. by Vince Lombardi. bgkaadabgkda

Hi there just wanted to give you a brief heads up and let you
know a few of the images aren’t loading properly. I’m not sure why but I think its a linking
issue. I’ve tried it in two different internet browsers and both show the same results.

I absolutely love your blog and find almost all of your post’s to be exactly I’m looking for.
Does one offer guest writers to write content for yourself?
I wouldn’t mind writing a post or elaborating on a few of the subjects you write about here.
Again, awesome website!

com, experts say that the number will swell rapidly in the next few years as hundreds of millions of Chinese still toiling as
low-paid farmers or labourers experience a rise in their incomes
that will enable them to go online. You can not
expect to put out half an effort and get the full results.
If the Lifetime Value (LV) of your customer is $100.