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
-
Hi Friends,
I want the answer for this question..
Please post your answers here.
Q.) How to check the LOG Files in LINUX?
-
Most of the log files are dump in to /var/log folder. you can use vi editor to open them.
-
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