Thursday, December 4, 2008

Stupid nix trix: Finger me write, how to talk to someone on a diffrent tty in *nix

You can communicate to other users on your *nix box using write. While at the command prompt you can type:

$write username

Where username is the name of the user, such as root or bsdpunk.

If multiple of the same user are logged in you can specify the tty you want to use.

Use the finger command to find out what tty the other user is on.
$finger

Under finger in a bsd enviroment you will see something like p4 under tty.

$write username tty

The username may be root or bsdpunk or something and the tty if as listed above will be ttyp4.

No comments: