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
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Explore load and uptime4m 3s
-
(Locked)
System logs4m 22s
-
(Locked)
Security logs2m 17s
-
(Locked)
Audit security access, groups, and users3m 24s
-
(Locked)
Check memory and process status3m 24s
-
(Locked)
Explore system resource usage with top6m 55s
-
(Locked)
Check free disk space1m 51s
-
(Locked)
Check disk status3m
-
-
-
-