dmesg 输出的格式不易查看,可以通过命令进行转换。

记录如下:

时间查看:

date -d "1970-01-01 UTC `echo "$(date +%s)-$(cat /proc/uptime|cut -f 1 -d' ')+12288812.926194"|bc ` seconds"

 

将dmesg中取到的时间戳替换掉上述的12288812.926194即可。

 【注】dmesg得到的时间戳只能在当前服务器上进行转换,在其他服务器转换的结果不对。

转自:http://blog.csdn.net/buptapple/article/details/8568938

相关文章:

  • 2021-11-27
  • 2021-10-09
  • 2021-05-26
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-01-29
猜你喜欢
  • 2022-12-23
  • 2021-07-22
  • 2021-12-05
  • 2022-12-23
  • 2021-11-20
  • 2022-02-25
相关资源
相似解决方案