2)显示用户weijie和root在8月9号的登录信息
[root@localhost ~]# last -t 20180809090000 weijie //可以看到用户weijie在8.9之前没有登录 wtmp begins Wed Aug 8 18:02:52 2018 [root@localhost ~]# last -t 20180809090000 root //用户root在8.9之前登录过几次 root pts/0 :0.0 Wed Aug 8 20:19 - down (00:05) root tty1 :0 Wed Aug 8 20:19 - down (00:06) root pts/1 :0.0 Wed Aug 8 18:16 - 20:16 (01:59) root pts/0 :0.0 Wed Aug 8 18:08 - 20:15 (02:06) root tty1 :0 Wed Aug 8 18:04 - 20:16 (02:11) wtmp begins Wed Aug 8 18:02:52 2018
3)显示终端tty1的登录信息
[root@localhost ~]# last 1 //等同于last tty1 root tty1 :0 Wed Aug 22 07:20 still logged in root tty1 :0 Tue Aug 21 17:34 - down (02:24) … wtmp begins Wed Aug 8 18:02:52 2018
总结
以上所述是小编给大家介绍的Linux基础命令last 命令实例详解,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对易采站长站网站的支持!










