Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux in General => Linux Development & Programming => Topic started by: radhika789 on December 28, 2009, 01:19:49 PM

Title: Log files checking in LINUX?
Post by: radhika789 on December 28, 2009, 01:19:49 PM
Hi Friends,

I want the answer for this question..

Please post your answers here.

Q.) How to check the LOG Files in LINUX?

Title: Re: Log files checking in LINUX?
Post by: kaushalpatel1982 on December 29, 2009, 10:36:30 AM
Most of the log files are dump in to /var/log folder. you can use vi editor to open them.
Title: Re: Log files checking in LINUX?
Post by: shabir_imam on December 30, 2009, 04:06:10 PM
The tail command is useful in monitoring log file. By default it shows last 10 lines of file to standard output. Combined with the -f ``follow'' option, it will print each new line from the log file as it is written. For example,
$ tail -f /var/log/messages

You can also view multiple log files simultaneously.
$tail -f /var/log/messages  -f /var/log/maillog