来源:互联网 更新时间:2026-08-13 07:27
[root@openEuler-test ~]# last --helpUsage: last [options] [...] [...]Show a listing of last logged in users.Options: -how many lines to show -a, --hostlast display hostnames in the last column -d, --dnstranslate the IP number back into a hostname -f, --file use a specific file instead of /var/log/wtmp -F, --fulltimesprint full login and logout times and dates -i, --ip display IP numbers in numbers-and-dots notation -n, --limit how many lines to show -R, --nohostname don't display the hostname field -s, --since last [选项] [<用户名>...] [<终端>...] 选项 | 选项 | 描述 | |||
|---|---|---|---|---|
| - | 显示多少行记录 | |||
| -a, --hostlast | 在最后一列中显示主机名 | |||
| -d, --dns | 将IP地址转换回主机名 | |||
| -f, --file <文件> | 使用指定的文件而不是 /var/log/wtmp | |||
| -F, --fulltimes | 打印完整的登录和登出时间和日期 | |||
| -i, --ip | 以点分十进制格式显示IP地址 | |||
| -n, --limit <数量> | 显示多少行记录 | |||
| -R, --nohostname | 不显示主机名字段 | |||
| -s, --since <时间> | 显示从指定时间开始的记录 | |||
| -t, --until <时间> | 显示到指定时间为止的记录 | |||
| -p, --present <时间> | 显示在指定时间时在线的用户 | |||
| -w, --fullnames | 显示完整的用户名和域名 | |||
| -x, --system | 显示系统关机条目和运行级别变更 | |||
| --time-format <格式> | 按照指定的 <格式> 显示时间戳:notime | short | full | iso |
| -h, --help | 显示此帮助 | |||
| -V, --version | 显示版本号 |
[root@openEuler-test ~]# last
root pts/0 192.168.3.241 Sat Sep 28 11:58 still logged in
root pts/0 192.168.3.241 Fri Sep 27 13:27 - 14:02 (00:34)
reboot system boot 6.6.0-28.0.0.34. Fri Sep 27 13:26 still running
root pts/0 192.168.3.241 Fri Sep 27 11:16 - down (02:09)
root pts/0 192.168.3.241 Fri Sep 27 08:49 - 09:19 (00:29)
root pts/0 192.168.3.241 Thu Sep 26 14:06 - 15:29 (01:23)
root pts/0 192.168.3.241 Thu Sep 26 13:32 - 14:05 (00:32)
root pts/0 192.168.3.241 Wed Sep 25 18:54 - 01:09 (06:15)
root pts/1 192.168.3.241 Tue Sep 24 23:06 - 00:14 (01:07)
root pts/0 192.168.3.241 Tue Sep 24 22:59 - 00:14 (01:15)
root pts/0 192.168.3.241 Tue Sep 24 22:47 - 22:58 (00:10)
root pts/0 192.168.3.241 Tue Sep 24 22:41 - 22:45 (00:03)
root pts/0 192.168.3.241 Tue Sep 24 22:39 - 22:39 (00:00)
root pts/0 192.168.3.241 Tue Sep 24 11:15 - 13:52 (02:36)
root pts/0192.168.3.241Sun Sep 22 23:52 - 01:01(01:08)root pts/0192.168.3.241Sat Sep7 14:57 - 00:59(10:02)reboot system boot6.6.0-28.0.0.34. Sun Sep1 04:40 - 13:26 (26 08:46)root pts/0192.168.3.241Sun Sep1 04:33 - down (00:06)root pts/0192.168.3.241Thu Aug 29 03:05 - 10:05(07:00)root pts/0192.168.3.241Wed Aug 21 07:19 - 20:04(12:44)root pts/0192.168.3.241Mon Aug 19 13:09 - 14:43(01:33)root pts/0192.168.3.241Wed Aug 14 20:43 - 20:43(00:00)root pts/0192.168.3.241Tue Aug 13 19:43 - 04:46(09:03)root pts/0192.168.3.241Mon Aug 12 11:12 - 03:19(16:07)root pts/0192.168.3.241Sun Aug 11 21:26 - 00:12(02:46)root pts/0192.168.3.241Sun Aug 11 10:02 - 10:19(00:17)root pts/0192.168.3.241Sat Aug 10 12:02 - 21:42(09:40)root pts/1192.168.3.241Thu Aug8 16:46 - 19:00(02:14)root pts/0192.168.3.168Thu Aug8 16:41 - 18:55(02:14)root tty1Thu Aug8 16:40 - 04:39 (23 11:59)reboot system boot6.6.0-28.0.0.34. Thu Aug8 16:38 - 04:39 (23 12:01)reboot system boot6.6.0-28.0.0.34. Thu Jun 27 15:54 - 04:39 (65 12:45)wtmp begins Thu Jun 27 15:54:01 2024 [root@openEuler-test ~]# last adminadminpts/1192.168.3.89 Sat Sep 28 15:55 - 15:55(00:00)wtmp begins Thu Jun 27 15:54:01 2024 [root@openEuler-test ~]# last rebootreboot system boot6.6.0-28.0.0.34. Fri Sep 27 13:26 still runningreboot system boot6.6.0-28.0.0.34. Sun Sep1 04:40 - 13:26 (26 08:46)reboot system boot6.6.0-28.0.0.34. Thu Aug8 16:38 - 04:39 (23 12:01)reboot system boot6.6.0-28.0.0.34. Thu Jun 27 15:54 - 04:39 (65 12:45)wtmp begins Thu Jun 27 15:54:01 2024 [root@openEuler-test ~]# last -n 5adminpts/1192.168.3.89 Sat Sep 28 15:55 - 15:55(00:00)root pts/0192.168.3.241Sat Sep 28 11:58 still logged inroot pts/0192.168.3.241Fri Sep 27 13:27 - 14:02(00:34)reboot system boot6.6.0-28.0.0.34. Fri Sep 27 13:26 still runningroot pts/0192.168.3.241Fri Sep 27 11:16 - down (02:09)wtmp begins Thu Jun 27 15:54:01 2024 [root@openEuler-test ~]# last -p "1 hour ago"
root pts/0 192.168.3.241 Sat Sep 28 11:58 still logged in
reboot system boot 6.6.0-28.0.0.34. Fri Sep 27 13:26 still running
wtmp begins Thu Jun 27 15:54:01 2024 黄金价格不断创新高!黄金稳定币XAU、PAXG市值达11亿美元
新浪机器学习热点小时报丨2026年07月25日18时_今日实时机器学习热点速递
CC币价格预测(2026-2035):Canton币今日价格走势+长期价格预测
新浪互联网热点小时报丨2026年07月26日16时_今日实时互联网热点速递
腾讯ima怎么创建共享知识库?
今日比特币暴涨分析:Metaplanet的比特币BTC投资推动股价上涨17%
腾讯ima怎么把微信内容一键导入知识库?
蚂蚁庄园今日答案7月21日(今日已更新) 蚂蚁庄园今天正确答案是什么呢
2026热门直线加速赛车手游推荐:高人气、爽快加速体验的精品榜单
Intel喜讯连连:18A工艺良率提升到85%、CPU将涨价15%
Windy卫星云图怎么看?云层变化识别技巧
kimi提示词专家使用方法新手指南
新浪人工智能热点小时报丨2026年07月30日18时_今日实时人工智能热点速递
原神霜月三处月灵龛具体位置汇总
《幻兽帕鲁》不触发通缉捕捉传说商人方法
短剧《史上最强洪荒修为》剧情介绍
9条破亿视频,新号涨粉百万,过去半年谁在制造AI爆款?
为什么推特KOL都在BRC20赚钱 我一冲就亏?
抖音怎么取消申请退货退款?抖音上取消退货怎么操作
炼金工房新作或能吃成“良子” 想让女主越吃越丰满
手机号码测吉凶
本站所有软件,都由网友上传,如有侵犯你的版权,请发邮件haolingcc@hotmail.com 联系删除。 版权所有 Copyright@2012-2013 haoling.cc