What command will send messages to people on the same network? I'm using write user and then write the message itself. But there's any command that doesn't show my username or that I'm trying to message them

The command i'm using will show this to the user i'm trying to contact code taken from the web

Message from root@dev.example.com on pts/1 at 17:11 ...
Best Answer

The only straightforward way I know of doing this is to use the wall command. This can be used to omit the sender's identification, via the -n switch.


$ sudo wall -n hi

Remote broadcast message (Fri Nov  8 13:49:18 2013):


using echo

This alternative method is more of a hack, since it isn't done through an explicit tool but you can echo text out to a users' terminal assuming you know which one they're on.


$ w
 13:54:26 up 2 days, 36 min,  4 users,  load average: 4.09, 4.20, 3.73
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
saml     tty1     :0               Wed13    2days  3:55m  0.04s pam: gdm-password
saml     pts/0    :0.0             Wed13   24:16m  0.35s  0.35s bash
saml     pts/1    :0.0             Wed20    0.00s  3.71s  0.00s w
saml     pts/4    :0.0             01:20   12:33m  0.36s  0.05s man rsync

Assuming you know user saml is in fact on one of the pseudo terminals you can echo text to that device directly like so. From terminal pts/1 .

$ sudo echo "Let's go have lunch... ok?" > /dev/pts/4

Result on pts/4 .

$ man rsync
$ Let's go have lunch... ok?