How do I convert dmesg timestamp to custom date format?

前端 未结 9 1240
感动是毒
感动是毒 2020-12-12 17:41

I am trying to understand the dmesg timestamp and find it hard to convert that to change it to java date/custom date format.

Sample dmesg log:

<         


        
9条回答
  •  一生所求
    2020-12-12 18:26

    With older Linux distros yet another option is to use wrapping script, e.g. in Perl or Python.

    See solutions here:

    http://linuxaria.com/article/how-to-make-dmesg-timestamp-human-readable?lang=en http://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/

提交回复
热议问题