From the course: Learning Fedora Linux

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Exploring logs

Exploring logs

From the course: Learning Fedora Linux

Start my 1-month free trial

Exploring logs

through the journal using the journalctl command, Typing just journalctl by itself acts like running a text log through less. So, we can navigate here using the less commands I'll move back by pressing q. The f and b keys move forward and back by screen. And we can search with slash and a term. or the most current entries. I'll quit this display with q. We can still use journalctl like it's a text log too, We can also pass options into journalctl For example, if we wanted to take a look at only the journal entries for a specific service, like cron. I'll write journalctl --unit=, and then the unit name, in this case, crond.service. If you're used to using text logs, this can take a while to get used to. There are still regular logs on the Fedora system There are still regular logs on the Fedora system in the /var/log directory. in the /var/log directory. So, if you need to look at those, you can use less or cat or more, you can use less or cat or more, as with any other…

Contents