Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在尝试使用以下命令在 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)
由于 uptime -s 在 SLES 中不起作用,是否有任何命令可以以秒为单位获取上次系统重新启动时间。
使用选项-F / --fulltimes显示last包括秒在内的时间。
-F / --fulltimes
last
last -F reboot