This is the first in a mini-series of articles about using Linux/Unix to do things other than view logs and edit files. I’m 26 and find that many of my peers weren’t exposed to Unix servers at university, so they miss out on this. If you have any suggestions of things to include in the mini series, let me know please!
So to pop up a message on another user’s PC, you’d usually use MSN, right? Well if you’re both logged into the same server there is another way. Just echo your message and then send the program write to get it to the person. Like this:
echo “Hello Kevin” | write kevin
Kevin will get a message on his screen which says:
Message from [email protected] on pts/1 at 22:14 ...
To turn off receiving messages, you need to change your mesg setting, by setting it to n:
Not surprisingly, you can turn it back on with:
That’s today’s installment, have fun!