Send Terminal Message to a User in UNIX & Linux

1. Find which port that the receiver are currently in. Look at the pts/<the-port-number>

# who
root     pts/0        Jan 13 14:22
root     pts/2        Jan 13 14:23
root     pts/3        Jan 13 14:23
root     pts/7        Jan 24 05:40
root     pts/1        Jan 24 05:39

2. Run below command and start typing the message

# cat > /dev/pts/7
hello
testing
bye

• The receiver will receive the message like this..

hello
testing
bye

Additional note:
• The receiver cannot reply the message to the sender.

You May Also Like

Leave a Reply?