Score:0

Echo something to another terminal session?

bh flag

Is there any way to echo something to another terminal session, obtained from the who command? For example, root user echoes a message to a different user's terminal session, after getting their session from who. Is this possible?

vn flag
Something like `write someone pts/2` after `mesg y`? Or directly `echo "Hi" 1> /dev/pts/1`
Raffa avatar
jp flag
Does this answer your question? [Terminal Output Redirected to another user's terminal](https://askubuntu.com/questions/1452200/terminal-output-redirected-to-another-users-terminal)
Score:1
dz flag

That's very much possible with the write command

Example

$ write username </dev/ttyX>

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.