--Linux/Unix监控其他用户和信号
------------------------------------------------------2013/10/27
查看有哪些用户登录
who – show who is logged on
[root@localhost ~]# who
root tty1 2013-10-26 21:46 (:0)
root pts/0 2013-10-26 21:47 (:0.0)
root pts/1 2013-10-26 21:52 (192.168.133.1)
查看pts/1在做什么
[root@localhost ~]# ps -ef | grep pts/1
root 21211 1888 0 21:52 ? 00:00:00 sshd: root@pts/1
root 21217 21211 0 21:52 pts/1 00:00:00 -bash
root 21277 21217 0 21:57 pts/1 00:00:00 su - Oracle
Oracle 21278 21277 0 21:57 pts/1 00:00:00 -bash
root 21577 21278 0 22:03 pts/1 00:00:00 su - root
root 21587 21577 0 22:04 pts/1 00:00:00 -bash
root 21631 21587 0 22:04 pts/1 00:00:00 ps -ef
root 21632 21587 0 22:04 pts/1 00:00:00 grep pts/1