From the course: Linux: System Maintenance

Unlock the full course today

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

System logs

System logs - Linux Tutorial

From the course: Linux: System Maintenance

Start my 1-month free trial

System logs

- [Instructor] A running system keeps logs of many activities that it performs and in some cases of what the user does. These logs are helpful in tracking down misbehaving hardware and software and for getting a sense of what's going on with the system. Here in my centOS system, the first log we'll take a look at is called Messages in the var log folder. Depending on your distro you may be able to find similar information in var log sys log. This file is a running list of messages from various software as to statuses, notifications, warnings and errors. It can get pretty noisy in here so it's a good idea to use a tool like Less to look through it. Just dumping it onto the screen with cat can be overwhelming. I'll do that with sudo less var log messages. And here I can see various services like the kernel doing some startup activities. And systemd. And then much further down, things like Bluetooth and NetworkManager and my desktop session. If you need a reminder of the commands for…

Contents