November 21, 2024, 10:40:26 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Log files checking in LINUX?  (Read 6950 times)

Offline radhika789

  • Linux Noob !
  • *
  • Posts: 9
Log files checking in LINUX?
« 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?


Offline kaushalpatel1982

  • LST CareTaker
  • Linux Learner
  • *****
  • Posts: 87
Re: Log files checking in LINUX?
« Reply #1 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.

Offline shabir_imam

  • New Member
  • Posts: 2
Re: Log files checking in LINUX?
« Reply #2 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