I'm looking for a way to have the access log for my nginx install scroll up the terminal as lines are added to the log. I think I need a command like cat access.log | diff but I'm not sure exactly what it should be.

link|improve this question
feedback

1 Answer

up vote 2 down vote accepted

Use tail with -f:

tail -f access.log

From man tail:

-f, --follow[={name|descriptor}]
output appended data as the file grows; -f, --follow, and --follow=descriptor are equivalent

link|improve this answer
cheers, worked perfectly! – H4Z3Y Mar 13 '11 at 14:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.