Through the system log to obtain relevant information, error, unexpected situation can be viewed through the log to obtain useful information. Encounter a fault, look at the log is the most common method, in the daily work must develop the habit of looking at the log.
The most core logs are in this directory.
The log will be generated indefinitely, the memory will be more and more large, there is a configuration file can limit the number of logs, time, and other information.
Configuration file:
Weekly logs are cut once a week
Rotate 4 reserved only 4
Create to create a new
Dateext Date Form naming
#compress log is not compressed
INCLUDE/ETC/LOGROTATE.D There are many configuration files in this directory
About the configuration of/var/log/wtmp
Monthly Monthly Filing
Create 0664 root utmp permissions 664 owner Root Group is utmp
Minsiz 1M minimum 1M less than 1M non-cutting
Rotate 1 reserved only 1
About the same/var/log/btmp.
//////////////////////////////////////////////////////////////////////////////////////////////
View kernel-related logs
See which users have logged in to this terminal at what time
To view invalid login records
About mail-related and validation-related
Hardware-related logs during system startup
Linux Daily Management-linux log