Chinaunix首页 | 论坛 | 博客
  • 博客访问: 480186
  • 博文数量: 135
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 1441
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-05 20:39
文章分类
文章存档

2012年(2)

2011年(130)

2009年(2)

2008年(1)

我的朋友

分类:

2011-08-11 15:11:33

 

linux查看系统登录用户

2009年12月17日

16:57

  1. Last login: Wed Jul 29 17:16:10 2009 from 192.168.1.77
  2. [root@dbrg-2 ~]# users

root

  1. [root@dbrg-2 ~]# w

 17:57:30 up 93 days,  8:48,  1 user,  load average: 0.69, 0.85, 0.62

USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT

root     pts/1    192.168.1.77     17:57    0.00s  0.00s  0.00s w

[root@dbrg-2 ~]# who

root     pts/1        Jul 29 17:57 (192.168.1.77)

[root@dbrg-2 ~]# finger

Login     Name       Tty      Idle  Login Time   Office     Office Phone

root      root       pts/1          Jul 29 17:57 (192.168.1.77)

[root@dbrg-2 ~]# who am i

root     pts/1        Jul 29 17:57 (192.168.1.77)

[root@dbrg-2 ~]# whoami

root

  1. [root@dbrg-2 ~]# ac -p

        root                               120.80

        total      120.80

  1. [root@dbrg-2 ~]# ac -d

Jul  1  total       10.04

Jul  2  total        4.73

Jul  3  total        1.31

Jul  6  total        5.58

Jul  7  total        8.13

Jul  8  total        7.48

Jul  9  total       14.94

Jul 10  total        8.79

Jul 13  total        8.30

Jul 14  total        9.22

Jul 15  total        5.00

Jul 16  total        9.38

Jul 17  total        9.09

Jul 20  total        4.69

Jul 21  total        6.30

Jul 22  total        3.84

Jul 23  total        1.54

Jul 24  total        1.34

Jul 26  total        0.31

Jul 27  total        3.28

Jul 28  total        1.00

Today   total        4.59

  1. [root@dbrg-2 ~]# lastlog

Username         Port     From             Latest

root             pts/1    192.168.1.77       7 29 17:57:03 +0800 2009

bin                                        **Never logged in**

daemon                                     **Never logged in**

adm                                        **Never logged in**

lp                                         **Never logged in**

sync                                       **Never logged in**

shutdown                                   **Never logged in**

halt                                       **Never logged in**

mail                                       **Never logged in**

news                                       **Never logged in**

uucp                                       **Never logged in**

operator                                   **Never logged in**

games                                      **Never logged in**

gopher                                     **Never logged in**

ftp                                        **Never logged in**

nobody                                     **Never logged in**

dbus                                       **Never logged in**

vcsa                                       **Never logged in**

rpm                                        **Never logged in**

haldaemon                                  **Never logged in**

netdump                                    **Never logged in**

nscd                                       **Never logged in**

sshd                                       **Never logged in**

rpc                                        **Never logged in**

mailnull                                   **Never logged in**

smmsp                                      **Never logged in**

rpcuser                                    **Never logged in**

pcap                                       **Never logged in**

xfs                                        **Never logged in**

ntp                                        **Never logged in**

pegasus                                    **Never logged in**

htt                                        **Never logged in**

named                                      **Never logged in**

  1. [root@dbrg-2 ~]#  last

root     pts/1        192.168.1.77     Wed Jul 29 17:57   still logged in  

root     pts/1        192.168.1.77     Wed Jul 29 17:16 - 17:47  (00:31)   

root     pts/1        192.168.1.77     Wed Jul 29 17:07 - 17:12  (00:04)   

root     pts/1        192.168.1.77     Wed Jul 29 13:21 - 13:39  (00:18)

 

Pasted from <http://gaizaoren.blog.51cto.com/622250/185047>

 

阅读(356) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~