jump to navigation

How to view live a log file in Linux November 5, 2010

Posted 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


No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s