Preview of UNIX/コマンド/チャット/write
To confirm the changes, click the button at the bottom of the pagewrite コマンドでログイン中の他ユーザーへメッセージを書き込むことができます。 まずは
% who
コマンドでユーザー名、端末名を調べて
% write [user_name] [terminal_name]
のようにします。端末名というのは console や pts/1 などのことです。 [terminal_name] を省略すると console への接続になります。 終了は
% [Ctrl-d]
を入力します。
別ホストを対象に実行したい場合は
% rsh [hostname] write [user_name] [terminal_name]
% kterm -sb -e rsh [hostname] write [user_name] [terminal_name]
のようにするのもありでしょう。
チャットをしたい場合は、相手も同様に write コマンドを実行すれば可能です。