14

I want to see the previous dmesg log before the reboot. In previous versions of fedora, It used to be in /var/log/messages. But from Fedora 20, it's being stored through systemd i.e. journalctl.

I've a directory /var/log/journal. It has many files and all of them having extension as .journal. I tried to open them with gedit. But couldn't succeed. I tried with notepad++. It's showing unreadable data as if a binary file. How to read them?

RatDon
  • 281

1 Answers1

19

Borrowed from this answer:

journalctl --file

e.g.

journalctl --file /path/to/some/file.journal

As indicated in that answer, these logs are regularly rotated, and may not stretch back as far as you might hope.

AdminBee
  • 22,803
Stephan
  • 2,911