知道SLES中上次重启时间的命令

我一直在尝试使用以下命令在SLES 12版本中以秒为单位获取上一次系统重新启动时间,但是没有一个命令以秒为单位提供时间。

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)

由于正常运行时间-s在SLES中不起作用,是否有任何命令可以获取以秒为单位的上一次系统重新启动时间。

iCMS 回答:知道SLES中上次重启时间的命令

使用-F / --fulltimes中的选项last显示包括秒在内的时间。

last -F reboot
本文链接:https://www.f2er.com/1812675.html

大家都在问