ubuntu 通过下面几种方式查看系统 重启时间/开机时间:

通过下面几种方式查看系统 重启时间/开机时间


1️⃣ 用 uptime 查看开机时间

复制代码
uptime -s
  • 输出示例:
复制代码
2025-09-26 00:45:12

表示系统从这个时间开始运行。


2️⃣ 用 who -b 查看最后一次重启时间

复制代码
who -b
  • 输出示例:
复制代码
system boot  2025-09-26 00:45

3️⃣ 用 last reboot 查看重启记录

复制代码
last reboot
  • 会显示所有重启历史记录,最新的在最上面:
复制代码
reboot   system boot  6.8.0-1035-oracle  Fri Sep 26 00:45   still running
reboot   system boot  6.8.0-1035-oracle  Thu Sep 25 15:10 - 15:20  (00:10)

✅ 建议

  • 如果只关心 最近一次开机/重启时间,用:
复制代码
uptime -s

最简单明了。

相关推荐
A小辣椒13 小时前
TShark:Wireshark CLI 功能
linux
A小辣椒17 小时前
TShark:基础知识
linux
AlfredZhao19 小时前
OCI 明明分配了 200G 系统盘,为什么 df 只看到 30G?
linux·oci
AlfredZhao1 天前
vi 删除指定范围的行,不用再反复按 dd
linux·vi
用户9718356334662 天前
银河麒麟 KY10 申威(SW64) 安装 nginx-1.16.1-2.p01.ky10.sw_64.rpm 详细步骤
linux
猪脚踏浪2 天前
linux 拷贝文件或目录到指定的位置
linux
大树882 天前
金刚石散热越强,管路越先见顶
大数据·运维·服务器·人工智能·ai
摇滚侠2 天前
Linux CentOS7 rpm 安装 MySQL 5.7
linux·运维·mysql
霸道流氓气质2 天前
领域驱动设计(DDD)在 Spring Boot 微服务中的实践指南
运维·spring boot·微服务
bush42 天前
嵌入式linux学习记录十四、术语
linux·嵌入式