当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Linux 指令篇:使用者资讯与管理--last

Unix/Linux
Linux 指令篇:档案目录管理--cat
Linux 指令篇:档案目录管理--cd
Linux 指令篇:档案目录管理--chmod
Linux 指令篇:档案目录管理--chown
Linux 指令篇:档案目录管理--cp
Linux 指令篇:档案目录管理--cut
Linux 指令篇:档案目录管理--find
Linux 指令篇:档案目录管理--less
Linux 指令篇:档案目录管理--ln
Linux 指令篇:档案目录管理--locate
Linux 指令篇:档案目录管理--ls
Linux 指令篇:档案目录管理--mkdir
Linux 指令篇:档案目录管理--more
Linux 指令篇:档案目录管理--mv
Linux 指令篇:档案目录管理--rm
Linux 指令篇:档案目录管理--rmdir
Linux 指令篇:档案目录管理--split
Linux 指令篇:档案目录管理--touch
Linux 指令篇:日期时间排程--at
Linux 指令篇:日期时间排程--cal

Unix/Linux 中的 Linux 指令篇:使用者资讯与管理--last


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 60 ::
收藏到网摘: n/a

  名称:last

使用权限:所有使用者

使用方式:shell>> last [options]

说明:显示系统开机以来获是从每月初登入者的讯息

参数:

        -R              省略 hostname 的栏位
        -num            展示前 num 个
        username        展示 username 的登入讯息
        tty             限制登入讯息包含终端机代号 

范例:

        shell>> last -R -2
        johnney  pts/1        Mon Aug 14 20:42   still logged in
        johnney  pts/0        Mon Aug 14 19:59   still logged in

        wtmp begins Tue Aug  1 09:01:10 2000            ### /var/log/wtmp


        shell>> last -2 minery
        minery   pts/0   140.119.217.115    Mon Aug 14 18:37 - 18:40  (00:03)
        minery   pts/0   140.119.217.115    Mon Aug 14 17:22 - 17:24  (00:02)

        wtmp begins Tue Aug  1 09:01:10 2000