Linux View / display a logfile in real time on screen
Q. I'd like to see my php or apache web server log files in real time. How do I see log file in real time including all incoming logs?
A. You need to use tail command which output the last part of files in real time including all incoming logs to a file.
tail -f file-name command
If your log file name is /var/log/lighttpd/access.log, enter:
tail -f /var/log/lighttpd/access.log
If your php log file name is /var/log/lighttpd/scripts.log, enter
tail -f /var/log/lighttpd/scripts.log
You will get a scrolling view of the /var/log/lighttpd/scripts.log for all incoming entries on screen. To stop simply hit CTRL+C. Please note that you may need to login as root user to view log files.
Updated for accuracy.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Does the UNIX or Linux has GUI?
- Squid Proxy Sever View logs / log files
- Is my hardware compatible with Linux?
- Ubuntu / Debian Linux: Install Monit Linux Server Monitoring Utility
- Linux Detecting / Checking Rootkits with Chkrootkit and rkhunter Software
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: access log, apache web server, ctrl c, Lighttpd, server log files, view logs files in real time, web server log



Recent Comments
Today ~ 1 Comment
Today ~ 3 Comments
Today ~ 57 Comments
Yesterday ~ 9 Comments
Yesterday ~ 7 Comments