who command show that xyz user is on tty2.
$ who xyz tty2 2018-06-22 08:18 (:0)
I trying send message to xyz using
write xyz command. But it does not shows on terminal.
When I run
tty command on xyz user terminal.
$ tty /dev/pts/1
write says user is not logged in on pts/1
$ write xyz pts/1 write: xyz is not logged in on pts/1
According to this reddit, in Debian Stretch Login session is usually on tty2.
So I think message is being sent to xyz user terminal, but since login session is open on that tty. It is not being displayed.
How can write message to opened terminal of xyz on debian stretch.