現在ログ(イン|オン)しているユーザがいないか確認するには
Linuxの場合whoコマンドを使う。
[hide@CentOS ~]$ who root tty1 2010-09-08 08:13 hide pts/0 2010-09-08 08:12 (192.168.8.1)
-Hオプションでヘッダが付く。
[hide@CentOS ~]$ who -H 名前 端末 時間 コメント root tty1 2010-09-08 08:13 hide pts/0 2010-09-08 08:12 (192.168.8.1)
Windowsの場合quserコマンドを使う。
C:\Windows\system32>quser /SERVER:127.0.0.1 アイドル ユーザー名 セッション名 ID 状態 時間 ログオン時刻 hide console 1 Active none 2010/09/07 21:33
Windows 7 Professional Editionで確認。Windows Vista Home Editionだとquserコマンドは使えなかった。Home Editionだとサポートされないのかな。