Sunday, November 13, 2011

How to watch a log file in realtime in Ubuntu Linux

There are times when I'm debugging code on a linux box that I want to see what's being logged by a Web Site or Web Application. What I used to have to do was do something on the website, then open up a terminal in Ubuntu (or any other linux distro for that matter) and view the logfile with either vim, nano, cat | less or gvim.

How I used text editors to do it
I use VIM as my default text editor on Ubuntu or any other linux distros (such as redhat, centos, debian, linux mint) that I work on.

A few weeks from now I used to use vim to open the log file, then the :e (edit) command to

view your log file in real time on ubuntu

No comments:

Post a Comment