Article Title: Introduction to Linux operating system logs. Linux is a technology channel of the IT lab in China. Information about some basic classification systems, such as desktop applications, Linux system management, kernel research, embedded systems, and open source systems, as well as those files or how to display them, is by/etc/syslog. conf. The following describes important record files in the/var/log directory of RedHat.
1. /var/log/lastlog: records the time when each user recently checked in to the system. Therefore, the last time the user checked in is displayed when the user checked in. Pay attention to this time, if it is not the time you checked in last time, your account may have been stolen. This file can be read using the/usr/bin/lastlog command.
We did not know when we logged on, but we did not know when we saw it. in LINUX, we will see the last time we logged on. We didn't know it when we first started it, but we saw it at the second time! I am careful enough!
2./var/run/utmp: records the time each user logs in to the system. who, users, finger, and other commands will query this file.
3./var/log/wtmp: records the time each user logs in and out. The last command will check this file. This file also records shutdown and reboot operations.
4./var/log/secure: record the connections from the platform and those addresses that fail to be connected.
5./var/log/maillog: records sendmail, pop, and other related messages.
6./var/log/cron: records information about crontab.
7./var/log/dmesg:/bin/dmesg will display this file, which is the screen message at startup.
8./var/log/xferlog: records the addresses for ftp to fetch those files.
9./var/log/messages: Most messages of the system are recorded here, including login, check password, failed login, ftp, and su.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service