dmesg using human readable output format

dmesg – print or control the kernel ring buffer

dmesg output drives me crazy due to the timestamp. A lot of times I said: “there must be a way to human readable date !!!”  and now it is:

# dmesg -T

No vars and conversions, just a simple option !!

Unfortunately this option doesn’t work on old dmesg releases. On Ubuntu 12.10 (utili-linux v2.20), it works, no way for Red Hat 6 .

Fedora 19 (util-linux 2.23) can do better using color output and pager by the following option:

# dmesg -H

If  -T and -H option are not available, you can use the follow script:

# dmesg | awk -F ] '{"cat /proc/uptime | cut -d \" \" -f 1" | getline st;a=substr( $1,2, length($1) - 1);print strftime("%F %H:%M:%S %Z",systime()-st+a)" -> "$0}' | more


Linux commands in a nutshell

writing down a series of posts about GNU Linux one of the main purposes of this blog.
In these posts we are going to review some Linux commands with practical examples.This is not a complete but it’s a compact list of commands to refer when needed.These posts are not a linux training or a complete guide: you can use manpages for that (aka RTFM)The goal is share information about GNU Linux commands , improve my knowledge and use this website to cut & paste commands that I’m not able to remember 🙂

Bug fixes, suggestions and feedbacks are welcome as usual !

Posts list:

dmesg using human readable output format

About me

Giuseppe La Rosa

IT Specialist

Milan, Italy

Follow me on:


Hi, my name is Giuseppe La Rosa, I’m a System Engineer living in Milan (Italy). I was born in Catania (Italy) in 1978. I started to get interested in the world of computer science at the age of 8 years. I graduated in 2006 with a degree in Information Technology and then I attended a stage at New York University for 3 months in bioinformatics algorithms filed.
After that, I came back to Italy and I worked in several roles as Java Developer and System administrator. Now I am an Operations Business Manager in a big Telco company.
I have a deep passions in several fields related to IT as OS, languages, security, Cloud and much more.


OS: Linux, Unix, HP-UX, Oracle Exadata
Languages : Java (J2SE, J2EE, Servlet), Python, Ruby on Rails, Puppet, Shell scripting
Web languages: JSP, ASP, HTML, CSS, XML+DTD
Tools & other: HP Service Guard, Veritas Cluster, Veritas Volume Manager


RHCA (Red Hat Certified Architect)
Red Hat Certified System Administrator in OpenStack
Platform-as-a-Service: Red Hat OpenShift Enterprise
Red Hat Server Hardening
Red Hat Performance Tuning
RHCVA (Red Hat Certified Virtualization Administrator)
RHCE (Red Hat Certified Engineer)
ITIL V3 Foundation
Ec-Council Certified Ethical Hacker v7


Photo, Ju Jitsu and above all motorbike