write a message to login users through terminal

March 10th, 2007 mysurface Posted in Admin, Common, wall, who, write | Hits: 423229 | 100 Comments »

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.

100 Responses to “write a message to login users through terminal”

  1. it will be nice if u can include some sample on how recipient screen look like when get the message.

    ( am i asking too much ? :P )

  2. login to s particular server through ssh, give me access as well, I will do you a live demo :P

    Its that better ? :D

  3. Not all distibution can have write i belive
    let’s assume to do it other way, through dev…

    echo msg > /dev/pts/1
    cat /dev/pst/1

  4. me gusto mas el último post, muy efectivo y sale inmediatamente en la termina. Tnks!!

  5. sebastian: I am sorry, I couldn’t understand the language you are saying.

  6. i am new to linux but i learned lots of neat stuffs already. is it possible to write message via terminal still yet the other side is not opening the terminal? thank you!

  7. jan:
    No, the user has to login to the console.

  8. example of what you see:

    Message from foo@server.domain on pts/1 at 10:23 …
    wanna grab lunch? im starved!!!

  9. if I will done for message and exit what must key word

  10. turn:

    “Terminate the write by ctrl+D.”

  11. I’m using Damn Small Linux and cannot use this command. It needs installing does anyone know where I can get the packages?
    Thanks.

  12. Ricky:
    That is bsdmainutils package.

    bsdmainutils: /usr/bin/bsd-write

  13. Thanks for the quick reply;
    -bash: bsdmainutils:: command not found

    Shall I use apt-get instead?

    Update; I used apt-get install bsd-write. It trys to build the Dependency Tree it gets up to 5% and then it starts killing it and ending it.

    =] Thank you ever-so-much.

  14. Update: I got the apt-get working again and it cannot find the
    package. =] Thanks again.

  15. Ricky: Damn Small Linux uses apt-get? Oh that is new to me. May be you can try to

    apt-cache search write

    or

    apt-cache search bsd

    or any other keywords you can think off.

    FYI, I am using Ubuntu, maybe the package’s name is different from Ubuntu repo.

  16. Thank you; Yeah I installed it onto the system. Thanks again. :)

  17. hello tableton,
    echo to /dev/… requires write permission to that file.
    It is necessary to give write permission to /dev/pts/.. to all users to use this method

  18. thank u

  19. BuTHileemeque Says:

    best search engine google

  20. anyone know how to view some sort of history log of messages you have received from other users?

  21. Want it? ,

  22. HI, Thanks a lot, I learned few things…

  23. Through wall command i can broadcast message on server, but i wants to know that how to send message on a particular IP.

  24. 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)

    anyideas??
    Thanks

  25. echo “jo” | write `cat file`

  26. i just want to know more about the command WALL
    ….
    just want to write on all user’s terminal ..
    i tried the command but it is asking for permissions

  27. 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

  28. nice post

  29. how to find.. who sent the broadcast message ?

  30. How do you send “clear” to the other user after the transmission has eneded?

  31. [...] example from Linux by Examples might [...]

  32. [...] write-a-message-to-login-users-through-terminal [...]

  33. Matematyka z plusem sprawdzian

  34. Hi there, I would like to subscribe for this web site to get hottest updates, so where can i do it please assist.

  35. sshed a system and i want to write on his terminal which he is using

  36. 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?

  37. Terrific article! That is the kind of info that are meant to be shared across the web.
    Shame on the seek engines for now not positioning this put up higher!

    Come on over and seek advice from my site . Thank you =)

  38. 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

  39. Every weekend i used to go to see this web page,
    for the reason that i wish for enjoyment, since this this site conations in fact
    good funny information too.

    Have a look at my blog post :: Roofing Atlanta

  40. I don’t even know how I ended up here, but I thought this post was good.
    I do not know who you are but certainly you’re going
    to a famous blogger if you are not already ;) Cheers!

    my web-site :: ibs treatment for women

  41. Therefore it can be mentioned that with an categorisation of extremely usable business and exciting features, the Blackberry
    mobile phones have turn into all-in-1 entertainment gadget
    for the users.

    Look at my blog :: free 100 gems in dragon city (Fatima)

  42. Awesome article.

    my webpage – 24 hour ac repair Conshohocken PA

  43. Hi, I desire to subscribe for this website to obtain latest updates, so where can i do
    it please help out.

  44. It’s actually a nice and useful piece of info. I am happy that you simply shared this helpful
    info with us. Please keep us up to date like this. Thank you for sharing.

    My website; Bronx dental

  45. I quite like looking through an article that can make people think.
    Also, many thanks for allowing me to comment!

  46. 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.

    Have a look at my web site: alcohol rehab

  47. Great blog you’ve got here.. It’s difficult to find high-quality writing like yours nowadays.
    I seriously appreciate people like you! Take care!!

    My weblog summer activities on long island

  48. 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!

  49. how can i stop those people who are disturbing my work by unnecessarily sending me messages.

  50. Very good article. I’m facing many of these issues as well..

  51. 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.

  52. What’s up, for all time i used to check website posts here in the early hours in the break of day, for the reason that i love to find out more and more.

  53. This is a comment to the webmaster. Your write a message to login users through terminal » Linux by Examples website is missing out on at least 300 visitors per day. I have found a company which offers to dramatically increase your traffic to your website: http://tgi.link/2xsj They offer 500 free visitors during their free trial period and I managed to get over 15,000 visitors per month using their services, you could also get lot more targeted traffic than you have now. Hope this helps :) Take care.

  54. If some one wishes to be updated with newest technologies therefore he must be
    visit this site and be up to date daily.

  55. Hello to all, the contents present at this site are in fact awesome for people
    knowledge, well, keep up the good work fellows.

    Visit my website … baju muslim terbaru tanah abang
    [Hershel]

  56. Undeniably imagine that that you stated. Your favorite justtification seemed to be at the net tthe simplest factor to understand
    of. I say to you, I certaiinly get annoyed whilst people think aboutt
    issues that they juswt do noot recognise about. You managed to hit
    the nail upon the highest ass smartly as outlined out the whole thing wikthout having side-effects , folks could take a signal.

    Will probabloy be back to get more. Thanks

  57. [...] e write vengono usati per poter scrivere messaggi al terminal di un altro utente. Ecco un esempio: write a message to login users through terminal Non mi serve, l’unico utente sono io e root.FusermountDESCRIPTION: The fusermount utility [...]

  58. Iwasn’t relieved That is darksiders 2 keygen all the Chosen combined.
    But in Japan the waitfing list could take your old zapper into a seriously streong laser.

  59. Wow, that’s what I was searching for, what a stuff! present here at this website, thanks admin of this site.

  60. The massive granite boulders line the beaches as proof of the island’s volcanic past.
    These islands, including Rhodes and Kos, offer their visitors a wonderful blend of architectural styles with both eastern and western influences.
    Because of the presence of several bodies of water, sailing
    in the Netherlands is a popular pastime.

  61. What’s up, just wanted to mention, I loved this p?st. It wa?
    practical. Keep on posting!

  62. Tax law about businesses in the USA is ever changing.

    As with everything else, it is only the mindset of the entrepreneur that dictates the success and
    failure of a company. Always choose a new account, and look for a
    specialized bank whenever possible.

  63. Banner ads typically include graphics and text
    which entice Internet users to click on the advertisement.
    When job offers do come and I’ll admit, some companies may fear hiring you because they fear a former owner being an employee, negotiate the best salary
    you can along with the best benefits you can for you and your family.
    What you give away doesn’t have to be costly, but it
    must be valuable.

  64. Yet, there are grants that are made for equipment and training.
    With good habit and savings, you can be assured of having enough to start
    your own business. Typically, this works well if we are involved in a solid networking and we reciprocate, by referring clients to those other businesses.

  65. Then send the postcard to all of the addresses in your area, and try to draw customers in.
    Make the process pain-free with debt collection software
    for a small business that automates this tedious process and adds to your company’s bottom
    line. For clients, you can target neighborhoods, communities or even companies.

  66. If you’re educated (or seeking an education) you will probably find
    a ton of opportunity in a small town. A lot of people
    have small business ideas that they often fail to put into practice either because they lack the money
    to make an investment or because the fear to lose
    everything. When travelling, for instance, it would be possible to login to your accounting database and enter transactions on the road.

  67. If you’re educated (or seeking an education) you will probably find a
    ton of opportunity in a small town. You can know all the ins and outs of
    business and can run a restaurant without fail; but would you know the first thing about installing the kitchen grills.

    Always choose a new account, and look for a specialized bank
    whenever possible.

  68. Yet, there are grants that are made for equipment and training.
    Platforms: Android, Blackberry, i – Phone, i – Pad, Windows Phone.
    Selling the same things, to the same market, in the same way.

  69. The following are the benefits that you have to be aware of the most.
    You can know all the ins and outs of business and can run a restaurant without fail; but would you know the first
    thing about installing the kitchen grills.
    For clients, you can target neighborhoods, communities
    or even companies.

  70. Choosing a brown tone is much more flattering since it attacks
    from drabuziai vaikams all angles. You can be found.
    This one I’m wearing it, and for a couple of days and it’s just not very hygienic.
    Now, some colored paper, piece off ribbon, drabuzsiai vaikams following with the perfect stripe stencil.But even if
    they are pushing drabuziai vaikams kids clothing presents them with brown duck tape and that is
    well worth the money.

  71. Banner ads typically include graphics and text which entice Internet users to click on the advertisement.
    Platforms: Android, Blackberry, i – Phone, i – Pad, Windows Phone.
    For clients, you can target neighborhoods, communities or even companies.

  72. If you’re educated (or seeking an education) you will probably find a ton of
    opportunity in a small town. When job offers do come and I’ll admit, some companies may
    fear hiring you because they fear a former owner being an employee,
    negotiate the best salary you can along with the best benefits you can for you and your family.

    Always choose a new account, and look for a specialized bank
    whenever possible.

  73. If you’re educated (or seeking an education) you will probably find a ton of opportunity in a small town. As with everything else, it
    is only the mindset of the entrepreneur that dictates the success and failure of a company.
    For clients, you can target neighborhoods, communities or even companies.

  74. Banner ads typically include graphics and text which entice Internet users to click on the advertisement.

    If, on the other hand, you are not successful in paying your
    loans back, you are going to develop “bad credit. For clients, you can target neighborhoods, communities or even companies.

  75. Then send the postcard to all of the addresses in your area, and try to draw customers in.
    Platforms: Android, Blackberry, i – Phone, i – Pad,
    Windows Phone. When travelling, for instance, it would be possible to login to your accounting database and enter transactions on the road.

  76. Yet, there are grants that are made for equipment and
    training. Without enough traffic, you will never have enough customers and this
    means you won’t be making enough money. Clients do not look no matter
    whether you’ve a small or big budgeted communication service.

  77. Tax law about businesses in the USA is ever changing.
    With good habit and savings, you can be assured of having enough to start your own business.

    Clients do not look no matter whether you’ve a small or big budgeted communication service.

  78. There is no such thing; it is just a way of getting you to pay more money.

    Most parrots shed feathers but some more than others so choose wisely.
    It is no good washing all of the parrots equipment if when doing so the owner has unclean hands themselves as this somewhat
    defeats the point.

  79. Tax law about businesses in the USA is ever changing.

    A lot of people have small business ideas that they often fail to put into practice
    either because they lack the money to make an investment or because the fear to lose everything.
    Before you do this, examine the publication online to ensure that its
    website is user friendly.

  80. If you’re educated (or seeking an education) you will probably
    find a ton of opportunity in a small town. When job offers do come and I’ll admit, some companies
    may fear hiring you because they fear a former owner being an employee,
    negotiate the best salary you can along with the best benefits you
    can for you and your family. Two: Increase in income – When you are able to increase your traffic to the business,
    you will easily be able to also increase your income.

  81. Tax law about businesses in the USA is ever changing.

    With good habit and savings, you can be assured of having enough
    to start your own business. Before you do this, examine the publication online to ensure that
    its website is user friendly.

  82. Yet, there are grants that are made for equipment and training.
    Further, amount of loan must be need-based, subject to ceiling of Rs 25,000 per borrower
    for purchase of machinery or equipment etc, and meeting working capital requirement of one operating cycle.
    What you give away doesn’t have to be costly, but it must be valuable.

  83. The following are the benefits that you have to be aware
    of the most. Further, amount of loan must
    be need-based, subject to ceiling of Rs 25,000 per borrower for purchase of machinery or equipment etc,
    and meeting working capital requirement of one operating cycle.

    Always choose a new account, and look for a
    specialized bank whenever possible.

  84. The following are the benefits that you have
    to be aware of the most. With good habit and savings, you can be assured of having enough to start your own business.
    Clients do not look no matter whether you’ve a small or
    big budgeted communication service.

  85. Tax law about businesses in the USA is ever changing.
    Without enough traffic, you will never have enough customers and this means you won’t be making enough money.
    Two: Increase in income – When you are able
    to increase your traffic to the business, you will easily be able to also increase your income.

  86. Look into their years of experience in managing small business accounts
    so that you can get professional advice on various financial matters.

    Make the process pain-free with debt collection software for a small business
    that automates this tedious process and adds to your company’s bottom line.

    Two: Increase in income – When you are able to increase your traffic to the business, you will easily be able
    to also increase your income.

  87. Yet, there are grants that are made for equipment and training.
    When job offers do come and I’ll admit, some companies may
    fear hiring you because they fear a former owner being an employee, negotiate the best salary you can along with
    the best benefits you can for you and your family. Typically, this works well if we are involved in a solid networking and we reciprocate,
    by referring clients to those other businesses.

  88. I’m not sᥙre why but thiѕ website is loading extrеmᥱlʏ slοԝ fοr me.
    Іѕ аnyоne еlѕᥱ ɦаνing tҺіѕ pгοblеm oг
    iѕ іt a іѕѕսe on mʏ ᥱnd?
    Ι’ⅼⅼ сһᥱсҝ ƅaсқ lɑtᥱг аnd ѕеe іf tһᥱ ρгοƄlеm ѕtіⅼl ехіѕtѕ.

    Mʏ sіtᥱ: Ԁегm ехϲⅼսsіѵе veгᥙs obaɡі rеνieԝ; Pam,

  89. I’m now not positive the place you are getting your
    information, however good topic. I needs to spend a while studying much more
    or understanding more. Thank you for excellent info
    I used to be on the lookout for this information for my mission.

  90. You are so interesting! I don’t suppose I’ve read through something like this before.
    So wonderful to find someone with unique thoughts on this subject matter.

    Seriously.. many thanks for starting this up.

    This site is something that’s needed on the web, someone with a bit of originality!

  91. Yet, there are grants that are made for equipment and training.
    As with everything else, it is only the mindset of the entrepreneur that dictates the success
    and failure of a company. Selling the same things, to the same market, in the same way.

  92. Then send the postcard to all of the addresses in your area, and try to draw customers in. With good habit and
    savings, you can be assured of having enough to start your own business.

    A customer is injured while using a product you sold and
    files a claim for indemnity.

  93. ??????????????????????????????????????????????????? ?????? ???????????????????????????????????????????????????????†?????????????????????†???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????††??????????????????????????????????????????????????

  94. Tax law about businesses in the USA is ever changing.
    With good habit and savings, you can be assured of having enough to start
    your own business. What you give away doesn’t have to be costly, but
    it must be valuable.

  95. Then send the postcard to all of the addresses in your area, and try
    to draw customers in. Further, amount of loan must
    be need-based, subject to ceiling of Rs 25,000 per borrower for purchase of machinery
    or equipment etc, and meeting working capital requirement of
    one operating cycle. When travelling, for instance, it would be possible
    to login to your accounting database and enter transactions on the road.

  96. The following are the benefits that you have to be aware of the most.
    Further, amount of loan must be need-based, subject to
    ceiling of Rs 25,000 per borrower for purchase
    of machinery or equipment etc, and meeting working capital requirement of one operating cycle.
    Before you do this, examine the publication online to ensure
    that its website is user friendly.

  97. Tax law about businesses in the USA is ever changing. Without enough traffic, you will never
    have enough customers and this means you won’t be making enough money.
    Selling the same things, to the same market, in the same way.

  98. The following are the benefits that you have to be aware of the most.
    When job offers do come and I’ll admit, some companies may fear hiring you because
    they fear a former owner being an employee, negotiate the best salary you can along
    with the best benefits you can for you and your family.
    A customer is injured while using a product you sold
    and files a claim for indemnity.

  99. Tax law about businesses in the USA is ever changing. When job offers do
    come and I’ll admit, some companies may fear hiring you
    because they fear a former owner being an employee,
    negotiate the best salary you can along with the best benefits you can for you
    and your family. What you give away doesn’t have to be costly,
    but it must be valuable.

  100. Look into their years of experience in managing small business accounts so that you can get
    professional advice on various financial matters.
    Platforms: Android, Blackberry, i – Phone, i – Pad, Windows Phone.
    Clients do not look no matter whether you’ve a small or big budgeted communication service.

Leave a Reply