How to view live a log file in Linux November 5, 2010Posted by Tournas Dimitrios in Linux.
Log files are important when debugging or just to check how a system is performing, we usually use ” cat ” to list the log on the screen, but if we want to see a live view of the log file, the command is:
tail -f /var/log/logfile.log
The -f option makes it wait for more lines, which will be displayed on the screen as soon as they are written to the file, so you can in real time the log file growing. On Centos the log file for Apache is : /var/log/httpd/access.log . To exit the panel just press Ctrl +c