歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux服務器

linux查看系統登錄用戶

Last login: Wed Jul 29 17:16:10 2009 from 192.168.1.77

    [root@dbrg-2 ~]# users

    root

    [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

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

        root                               120.80

        total      120.80

    [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

    [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**
  &nbs

p; 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**

    [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)

Copyright © Linux教程網 All Rights Reserved