Chat/Text messaging from commandline on Linux

Want to urgently copy a text message from one pc to another, or have a short conversation with a peer on another pc ? here’s how –

@ PC1: nc -l [port-number to listen, without brackets of course]

@PC2: nc [IP of PC1] [port-number above]

Now type any text on pc2 – it should be visible on pc1, and vice versa.

Sreekumar Kj
Sreekumar (KJ) has been a hobby programmer from school days. Codemarvels is his personal blog from the year 2010, where he writes about technology, philosophy, society and a bit about physics. He now runs a conversational AI company - DheeYantra - focusing his efforts to help businesses improve operational efficiency using digital employees powered by AI.