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]

ShareThis

ShoutBox


ShoutMix chat widget

User login

Who's online

There are currently 0 users and 7 guests online.


Poll

What is your favorite Virtualization Server ?:
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
5 + 13 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Recent comments

Alexa