用于了解 SLES 中上次重启时间的命令
Command to know last reboot time in SLES
我一直在尝试使用以下命令在 SLES 12 版本中以秒为单位获取上次系统重启时间,但其中 none 给出了以秒为单位的时间。
who -b
system boot 2020-07-30 23:02
last reboot
reboot system boot 4.12.14-95.54-de Thu Jul 30 23:02 - 11:41 (3+12:39)
由于 uptime -s 在 SLES 中不起作用,是否有任何命令可以获取上次系统重启时间(以秒为单位)。
使用 last
的选项 -F / --fulltimes
来显示包括秒在内的时间。
last -F reboot
我一直在尝试使用以下命令在 SLES 12 版本中以秒为单位获取上次系统重启时间,但其中 none 给出了以秒为单位的时间。
who -b
system boot 2020-07-30 23:02
last reboot
reboot system boot 4.12.14-95.54-de Thu Jul 30 23:02 - 11:41 (3+12:39)
由于 uptime -s 在 SLES 中不起作用,是否有任何命令可以获取上次系统重启时间(以秒为单位)。
使用 last
的选项 -F / --fulltimes
来显示包括秒在内的时间。
last -F reboot