From the course: Learning CentOS Linux
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Exploring the logs
From the course: Learning CentOS Linux
Exploring the logs
- [Male Narrator] It can be useful to check out the messages that applications and the system write to log files. I'll change directory over to var/log, where these files are stored. Let's take a look at what's here. In order to take a look at these logs, we'll need to use the super user privileges. Let's take a look at yum.log, the log that the package manager keeps of its activities. I'll use tail to look at the last few entries. Here, I can see some of the packages that we've installed throughout the course. There's also the secure log, which shows security events, including uses of sudo on the system. Here, I can see my most recent connection via ssh and I can see the last few times that I used sudo. There's also the messages log, where a lot of information shows up from processes that don't have their own specific log files. And you can take a look at the system's audit log as well. In audit/audit.log, or in a much more readable way, through the au report tool. Au report by…
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.