查看系统中有哪些用户:

cut -d : -f 1 /etc/passwd


查看可以登录系统的用户:

cat /etc/passwd | grep -v /sbin/nologin | cut -d : -f 1

查看用户操作:w命令(需要root权限)
查看某一用户:w 用户名

查看登录用户:who

查看用户登录历史记录:last 、lastlog

其他還有:finger等