Main Menu

Search

LINUX: How To Check Date/Timestamps When Linux Machine Was Rebooted From /var/log/messages system log?

Below command can be used to check date and timestamp when Linux machine was rebooted from /var/log/messages system log.
egrep -iR "Linux version" messages*

Below is example snippet of above command.

# egrep -iR "Linux version" messages*
messages-20190823:Aug 22 22:46:03 [localhost] kernel: Linux version 4.1.12-112.14.13.el7uek.x86_64 (mockbuild@) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #2 SMP Thu Jan 18 11:38:29 PST 2018
messages-20190823:Aug 23 02:23:19 [localhost] kernel: Linux version 4.1.12-112.14.13.el7uek.x86_64 (mockbuild@) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #2 SMP Thu Jan 18 11:38:29 PST 2018
messages-20190826:Aug 26 13:26:52 [localhost] kernel: Linux version 4.1.12-112.14.13.el7uek.x86_64 (mockbuild@) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #2 SMP Thu Jan 18 11:38:29 PST 2018


Products to which Article Applies


All Linux Operating Systems



 


tarun boyella

No comments:

Post a Comment