linux 中查看用户信息的命令有: who finger  whomai  or who am i
 
1. who --查看系统当前在线的用户, 以及用户的登录的信息.
如:
$ who
root     pts/1        Aug 25 10:35 (60.28.74.194)
magj     pts/3        Aug 25 10:26 (60.28.74.194)
 
2. finger --查看某个用户的登录信息, 以及用户的个人信息.
如:
$ finger magj
Login: magj                             Name: (null)
Directory: /home/magj                   Shell: /bin/bash
On since Mon Aug 25 10:26 (CST) on pts/3 from 60.28.74.194
Mail last read Wed Aug 20 09:45 2008 (CST)
No Plan.

3. who am i
    whoami --查看登录的是哪个帐号, 以及其它登录信息.
如:
$ whoami
magj