Write to another users terminal session

You can login to a terminal and message other logged in users.

First turn on messaging,

$ mesg y

Then execute the w or who command and get the

# w
 03:26:26 up 69 days,  1:48,  8 users,  load average: 0.47, 0.42, 0.37
USER         TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
joefoobar    pts/1    gabe:S.1         11Apr10  1:46   0.76s  0.76s /bin/bash
mike         pts/2    gabe:S.2         11Apr10  1:23m  0.96s  0.96s /bin/bash
sally        pts/3    gabe:S.3         11Apr10  1:23m 11.15s 11.15s -bash
xar2d        pts/4    gabe:S.4         11Apr10 12:49   3.80s  3.80s -bash
dwarflor     pts/5    gabe:S.5         11Apr10  2:35   8.46s  8.46s -bash
monogo       pts/6    gabe:S.6         11Apr10  0.00s  2.17s  2.13s -bash
partygirl    pts/8    gabe:S.8         11Apr10  1:27m  6.84s  6.34s mysql -u root -
messybabe    pts/9    gabe:S.9         11Apr10  2days  0.85s  0.43s /bin/bash

Say you want to message sally. Her TTY is pts/3, so issue this command,

$ write sally pts/3

Then you can start typing messages to that user. Enjoy and use wisely.

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.