Almost all log files are located under /var/log directory (and subdirectory). You can change to this directory using cd command but you need to be the root user. You can use less, more, cat or tail command to see the logs.
Firt you need to go to /var/logs directory :
[code]cd /var/log[/code]
See all files and subdirectory :
[code]ls[/code]
Below is example files in /var/log directory, make a note that httpd, mail, and samba below is a subdirectory in /var/log
[code]
boot.log cron httpd maillog messages.1 secure.1 wtmp
boot.log.1 cron.1 lastlog maillog.1 samba spooler yum.log
btmp dmesg mail messages secure spooler.1
[/code]
Then how to view common log file /var/log/messages using the following commands below:
[code]tail -f messages[/code]
Recent comments
1 week 1 day ago
4 weeks 1 day ago
5 weeks 9 hours ago
5 weeks 15 hours ago
5 weeks 1 day ago
5 weeks 1 day ago
5 weeks 2 days ago
5 weeks 3 days ago
5 weeks 6 days ago
6 weeks 2 days ago